-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 an option to disable namespace-metadata #11782
Conversation
Signed-off-by: shinigami-777 <chattopadhyaytamaghna@gmail.com>
Signed-off-by: shinigami-777 <chattopadhyaytamaghna@gmail.com>
Providing namespace-metadata disable option #11585 |
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.
Hi @shinigami-777 , thanks for the contribution. Please add a comment to this PR describing your change, and a reference to the issue it fixes. Also make sure you test your change before submitting, to validate it addresses the issue.
jaeger/charts/linkerd-jaeger/templates/namespace-metadata-rbac.yaml
Outdated
Show resolved
Hide resolved
jaeger/charts/linkerd-jaeger/templates/namespace-metadata-rbac.yaml
Outdated
Show resolved
Hide resolved
Signed-off-by: shinigami-777 <chattopadhyaytamaghna@gmail.com>
Signed-off-by: shinigami-777 <chattopadhyaytamaghna@gmail.com>
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.
I've added a suggestion for a different naming of this new setting. After applying that, please run ./bin/helm-docs
to regenerate the helm values documentation in the charts README.md files.
# -- adding an option to disble namespace-metadata jobs | ||
skipNamespaceMetadataJobs: false |
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.
# -- adding an option to disble namespace-metadata jobs | |
skipNamespaceMetadataJobs: false | |
# -- Creates a Job that adds necessary metadata to the extension's namespace | |
# during install; disable if lack of privileges require doing this manually | |
createNamespaceMetadataJobs: true |
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.
Thanks for the suggestion @alpeb .I have made the suggested changes and regenerated the helm values documentation in the charts README.md files.
…ntation in charts README.md files Signed-off-by: shinigami-777 <chattopadhyaytamaghna@gmail.com>
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.
Thanks @shinigami-777 , this looks good to me. I'd like however to amend my previous comment on naming: can you rename the setting createNamespaceMetadataJob
, given that it's just one job (per extension)? Sorry for the nit picking!
@@ -76,3 +77,4 @@ subjects: | |||
- kind: ServiceAccount | |||
name: namespace-metadata | |||
namespace: {{.Release.Namespace}} | |||
{{-end}} |
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.
You require spaces here or else the template breaks, as you can see in the integration tests results.
{{-end}} | |
{{- end }} |
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.
Thanks @alpeb . Added spaces between those end statements.
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.
Thanks, can you address my comment about naming above? After that, this PR looks fine from my perspective.
Signed-off-by: shinigami-777 <chattopadhyaytamaghna@gmail.com>
Signed-off-by: shinigami-777 <chattopadhyaytamaghna@gmail.com>
Yes I have renamed the setting |
I still see |
I can't see the |
I meant to say the setting should be |
Signed-off-by: shinigami-777 <chattopadhyaytamaghna@gmail.com>
Yes I have updated it to |
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.
Thanks @shinigami-777 , this looks good to me!
Thanks @alpeb for the guidance. |
Fixes #11585
Added option in
values.yaml
in extensions charts to disable the namspace-metadata jobs for helm based installations.The
createNamespaceMetadataJob
flag should be set to false from cli to disable it. Disable if lack of privileges require doing it manually.