-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[kube-state-metrics]: add option to set user namespaces #6024
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
base: main
Are you sure you want to change the base?
Changes from 6 commits
08c5e1c
14c9725
cfb8990
581409d
5a65af3
8477a98
b216d1c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,6 +55,9 @@ extraArgs: [] | |
| # If false then the user will opt out of automounting API credentials. | ||
| automountServiceAccountToken: true | ||
|
|
||
| # -- Use the host's user namespace available in kubernetes 1.33+. | ||
| hostUsers: nil | ||
|
||
|
|
||
| service: | ||
| port: 8080 | ||
| # Default to clusterIP for backward compatibility | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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'd prefer to avoid no-op rendering. Current implementation would only apply the field if the value is a boolean, but Helm will render nothing if it's not, which may be difficult to debug.
I would recommend something more idiomatic, like:
This would skip rendering when the key is missing or explicitly
nil, it would not silently fail when the key has any value, but it would still enforce the value of the flag to hold a boolean value.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.
@dacamposol, I see, this makes a lot of sense, i applied this recommendation