-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Rename cli flag from label-metrics-allow-list to metric-labels-allowlist #1424
Conversation
docs/cli-arguments.md
Outdated
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0) | ||
--log_dir string If non-empty, write log files in this directory | ||
--log_file string If non-empty, use this log file | ||
--log_file_max_size uint Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800) | ||
--logtostderr log to standard error instead of files (default true) | ||
--metric-allowlist string Comma-separated list of metrics to be exposed. This list comprises of exact metric names and/or regex patterns. The allowlist and denylist are mutually exclusive. | ||
--metric-denylist string Comma-separated list of metrics not to be enabled. This list comprises of exact metric names and/or regex patterns. The allowlist and denylist are mutually exclusive. | ||
--metric-labels-passthrough string Comma-separated list of additional Kubernetes label keys that will be used in the resource' labels metric. By default the metric contains only name and namespace labels. To include additional labels provide a list of resource names in their plural form and Kubernetes label keys you would like to allow for them (Example: '=namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...)' |
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.
Either is fine by me, whatever is less confusing for our users. @brancz @tariq1890 thoughts for or against this change? We should get it into rc.1 if we want it.
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.
hmm I think I preferred allowlist, but whatever we do, the exact spelling should be consistent with other flags .. I don't feel strongly whether allow-list
or allowlist
, but it should be consistent.
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.
Sounds good to me as well, @mrueg would you be okay with making the change to the allowlist instead?
In either case I would say lets get this in before the rc.1 is out.
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 feedback. I changed it to metric-labels-allowlist and regenerated the docs.
This might be more clear on what the flag is doing. There were two ways to spell allow-list / allowlist which it removes as well Fixes: kubernetes#1421
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.
/lgtm
Thanks
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lilic, mrueg The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* [CHANGE] Rename --labels-metric-allow-list to --metric-labels-allowlist kubernetes#1424 * [CHANGE] Remove deprecated Kubernetes APIs kubernetes#1423 * [CHANGE] Remove vendor folder kubernetes#1419
* [CHANGE] Rename --labels-metric-allow-list to --metric-labels-allowlist kubernetes#1424 * [CHANGE] Remove deprecated Kubernetes APIs kubernetes#1423 * [CHANGE] go.mod: Update Dependencies kubernetes#1419 * [CHANGE] Remove vendor folder kubernetes#1419 * [CHANGE] `k8s.gcr.io/kube-state-metrics/kube-state-metrics` becomes the authoritative registry Location on quay.io will not be updated anymore. Previously pushed images will be kept around to avoid breaking existing deployments.
What this PR does / why we need it:
This might be more clear on what the flag is doing. There were two ways
to spell allow-list / allowlist which it removes as well
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes: #1421