Skip to content

Conversation

@ggerla
Copy link
Contributor

@ggerla ggerla commented Sep 17, 2024

Q A
Bug fix? no
New feature? yes
API breaks? no
Deprecations? no
Related tickets fixes #463
License Apache 2.0

What's in this PR?

Read new section oidcConfiguration from Values.yaml and inject it into nifi.properties file

Why?

Fix the feature request #463

Checklist

To Do

  • test it
  • add documentation

@ggerla ggerla force-pushed the feat/oidcConfiguration branch from d2fcee2 to 36d95aa Compare September 17, 2024 18:39
// +kubebuilder:default:=false
// +optional
Enabled bool `json:"enabled"`
// authorizerEnabled specifies if the cluster should use use the single-user-authorizer instead of the managed-authorizer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please update these comments to correctly describe the variables?

//
"LdapConfiguration": r.NifiCluster.Spec.LdapConfiguration,
"SingleUserConfiguration": r.NifiCluster.Spec.SingleUserConfiguration,
"OidcConfiguration": r.NifiCluster.Spec.OidcConfiguration,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please correct the tab spacing for all of these?

@mh013370
Copy link
Member

mh013370 commented Sep 25, 2024

A few of things:

  1. Please run make build and commit the updated CRDs, which are generated as a part of the build process.
  2. Please update the site documentation to describe the new configuration: https://github.com/konpyutaika/nifikop/blob/master/site/docs/5_references/1_nifi_cluster/1_nifi_cluster.md
  3. Please update the CHANGELOG to describe what is being added.

Name: OidcConfiguration.SecretRef.Name,
NameSpace: OidcConfiguration.SecretRef.NameSpace,
},
Key: clientSecret,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please document (ad nauseum) what the key in the secret should be for the referenced secret? This should be documented on the website documentation, in nificluster_types.go, and in any comment where is makes sense. This way, it's very clear what the secret should contain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose OIDC configuration into values.yaml

4 participants