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

Add WithAllowLabels to public BuilderInterface #1514

Merged
merged 2 commits into from
Jun 29, 2021

Conversation

ahmed-mez
Copy link
Contributor

@ahmed-mez ahmed-mez commented Jun 25, 2021

What this PR does / why we need it:

fixes: #1515

Add the method WithAllowLabels to public BuilderInterface.

It provides an option to configure --metric-labels-allowlist when kube-state-metrics is used as a Go dependency of another project.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 25, 2021
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 25, 2021
@ahmed-mez
Copy link
Contributor Author

/assign @tariq1890

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 28, 2021
@tariq1890
Copy link
Contributor

/approve

Copy link
Contributor

@tariq1890 tariq1890 left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahmed-mez, mrueg, tariq1890

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 approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm "Looks good to me", indicates that a PR is ready to be merged. labels Jun 29, 2021
@k8s-ci-robot k8s-ci-robot merged commit 7594278 into kubernetes:master Jun 29, 2021
@ahmed-mez
Copy link
Contributor Author

Hi @tariq1890 and @mrueg

Thank you for reviewing and approving the PR! Really appreciated the maintainers' reactivity!

Any chance we could get this back-ported to v2.1 ? Otherwise, any idea on when the next version including this fix will be released?

Thanks!

@mrueg
Copy link
Member

mrueg commented Jun 29, 2021

@ahmed-mez Thanks for your contribution! Can you send a backport PR to the release-2.1 branch, that way we can make sure it will be in an upcoming 2.1.1 release.

@ahmed-mez
Copy link
Contributor Author

Thank you @mrueg ! Here is the backport PR #1516

k8s-ci-robot added a commit that referenced this pull request Jul 13, 2021
mrueg added a commit to mrueg/kube-state-metrics that referenced this pull request Jul 28, 2021
* [CHANGE] Replace multiListWatcher with independent listWatchers per namespace kubernetes#1499
* [BUGFIX] Use BuilderInterface instead of internal/store.Builder in metricshandler kubernetes#1537
* [BUGFIX] Add WithAllowLabels to public BuilderInterface kubernetes#1514
mrueg added a commit to mrueg/kube-state-metrics that referenced this pull request Jul 28, 2021
* [CHANGE] Replace multiListWatcher with independent listWatchers per namespace kubernetes#1499
* [CHANGE] go.mod: Update and minimize dependencies kubernetes#1529
* [BUGFIX] Use BuilderInterface instead of internal/store.Builder in metricshandler kubernetes#1537
* [BUGFIX] Add WithAllowLabels to public BuilderInterface kubernetes#1514
mrueg added a commit to mrueg/kube-state-metrics that referenced this pull request Jul 28, 2021
* [CHANGE] Replace multiListWatcher with independent listWatchers per namespace kubernetes#1499
* [CHANGE] go.mod: Update and minimize dependencies kubernetes#1529
* [BUGFIX] Use BuilderInterface instead of internal/store.Builder in metricshandler kubernetes#1537
* [BUGFIX] Add WithAllowLabels to public BuilderInterface kubernetes#1514
mrueg added a commit to mrueg/kube-state-metrics that referenced this pull request Jul 28, 2021
* [CHANGE] Replace multiListWatcher with independent listWatchers per namespace kubernetes#1499
* [CHANGE] go.mod: Update and minimize dependencies kubernetes#1529
* [BUGFIX] Use BuilderInterface instead of internal/store.Builder in metricshandler kubernetes#1537
* [BUGFIX] Add WithAllowLabels to public BuilderInterface kubernetes#1514
mrueg added a commit to mrueg/kube-state-metrics that referenced this pull request Jul 28, 2021
* [CHANGE] Replace multiListWatcher with independent listWatchers per namespace kubernetes#1499
* [CHANGE] go.mod: Update and minimize dependencies kubernetes#1529
* [BUGFIX] Use BuilderInterface instead of internal/store.Builder in metricshandler kubernetes#1537
* [BUGFIX] Add WithAllowLabels to public BuilderInterface kubernetes#1514
mrueg added a commit to mrueg/kube-state-metrics that referenced this pull request Jul 28, 2021
* [CHANGE] Replace multiListWatcher with independent listWatchers per namespace kubernetes#1499
* [CHANGE] go.mod: Update and minimize dependencies kubernetes#1529
* [BUGFIX] Use BuilderInterface instead of internal/store.Builder in metricshandler kubernetes#1537
* [BUGFIX] Add WithAllowLabels to public BuilderInterface kubernetes#1514
mrueg added a commit to mrueg/kube-state-metrics that referenced this pull request Jul 29, 2021
* [CHANGE] Replace multiListWatcher with independent listWatchers per namespace kubernetes#1499
* [CHANGE] go.mod: Update and minimize dependencies kubernetes#1529
* [BUGFIX] Use BuilderInterface instead of internal/store.Builder in metricshandler kubernetes#1537
* [BUGFIX] Add WithAllowLabels to public BuilderInterface kubernetes#1514
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/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot configure --metric-labels-allowlist when KSM is used as a Go dependency
4 participants