-
Notifications
You must be signed in to change notification settings - Fork 719
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
Allow setting additional operator flags via the Helm chart #7252
Allow setting additional operator flags via the Helm chart #7252
Conversation
Signed-off-by: Michael Montgomery <mmontg1@gmail.com>
Signed-off-by: Michael Montgomery <mmontg1@gmail.com>
@@ -14,5 +15,7 @@ disable-telemetry: false | |||
distribution-channel: image | |||
validate-storage-class: true | |||
enable-webhook: false | |||
operator-namespace: elastic-system |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default is empty string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is coming from manifest-gen
which defaults to using the 'elastic-system' namespace when generating yaml from the helm charts.
cloud-on-k8s/hack/manifest-gen/main.go
Line 121 in 20f11e7
cmd.Flags().StringVarP(&generateFlags.OperatorNamespace, "namespace", "n", "elastic-system", "Operator namespace") |
And with the addition of
operator-namespace: {{ .Release.Namespace }}
, this is why it's now defaulting to setting this in the default configuration.
If preferred, I can just remove this from the template, as it really isn't getting us anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise lgtm
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
* Allow setting additional operator flags. --------- Signed-off-by: Michael Montgomery <mmontg1@gmail.com> (cherry picked from commit 4685042)
closes #6091
What is this change?
Allows setting the following Operator flags via the Helm chart:
-disable-config-watch
-ip-family
-operator-namespace
# is set indirectly via.Release.Namespace
-ubi-only
-webhook-secret
Notes for review
-operator-namespace
isn't allowed to be set directly, but is set indirectly via whatever namespace the Helm chart is installed within {{.Release.Namespace
}}.-config
is not allowed to be set at all, as it doesn't make sense in the context of a Helm chart. (It's used in the statefulset template--config=/conf/eck.yaml
.Testing done