Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added oidc Configuration section and operator management #464

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

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?

@@ -162,6 +176,7 @@ func (r *Reconciler) getNifiPropertiesConfigString(nConfig *v1.NodeConfig, id in
//
"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
3 participants