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

Rename cli flag from label-metrics-allow-list to metric-labels-allowlist #1424

Merged
merged 1 commit into from
Mar 26, 2021

Conversation

mrueg
Copy link
Member

@mrueg mrueg commented Mar 22, 2021

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

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 22, 2021
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Mar 22, 2021
--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],...)'
Copy link
Member

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.

Copy link
Member

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.

Copy link
Member

@lilic lilic Mar 26, 2021

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.

Copy link
Member Author

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
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Mar 26, 2021
@mrueg mrueg changed the title Rename cli flag from label-metrics-allow-list to metric-labels-passthrough Rename cli flag from label-metrics-allow-list to metric-labels-allowlist Mar 26, 2021
Copy link
Member

@lilic lilic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Thanks :shipit:

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 26, 2021
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 26, 2021
@k8s-ci-robot k8s-ci-robot merged commit e41436e into kubernetes:release-2.0 Mar 26, 2021
mrueg added a commit to mrueg/kube-state-metrics that referenced this pull request Mar 26, 2021
* [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
@mrueg mrueg mentioned this pull request Mar 26, 2021
mrueg added a commit to mrueg/kube-state-metrics that referenced this pull request Mar 26, 2021
* [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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants