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

KEP-2305: introduce allow-metric-labels-manifest #118299

Merged
merged 2 commits into from
Oct 4, 2023

Conversation

rexagod
Copy link
Member

@rexagod rexagod commented May 27, 2023

What type of PR is this?

/kind feature

What this PR does / why we need it:

Enable configuring the allow-list by reading a manifest. This is done as a part of graduating kubernetes/enhancements#2305 to beta.

Does this PR introduce a user-facing change?

allow-list of metric labels can be configured by supplying a manifest using the --allow-metric-labels-manifest flag

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

- [KEP]: https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2305-metrics-cardinality-enforcement
- [Usage]: --allow-metric-labels-manifest <path-to-the-manifest>

@k8s-ci-robot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation. and removed do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels May 27, 2023
@rexagod rexagod force-pushed the kep-2305 branch 2 times, most recently from 44d5fe9 to 9595962 Compare May 28, 2023 18:27
@rexagod rexagod marked this pull request as ready for review May 28, 2023 18:28
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 28, 2023
@rexagod rexagod force-pushed the kep-2305 branch 2 times, most recently from ebf5d88 to a725778 Compare May 28, 2023 22:37
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 3, 2023
@logicalhan
Copy link
Member

/triage accepted
/assign

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jun 15, 2023
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 16, 2023
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 16, 2023
(as per the prr review)

Signed-off-by: Pranshu Srivastava <[email protected]>
}
err = yaml.Unmarshal(data, &allowListMapping)
if err != nil {
klog.Errorf("Failed to parse allow list manifest: %v", err)
Copy link
Member

Choose a reason for hiding this comment

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

Should there be error handling / panic or something here? Is logging sufficient? @logicalhan what is the expectation here?

Copy link
Member

Choose a reason for hiding this comment

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

Falling back to default behavior seems fine. I wouldn't want this to explode people.

@logicalhan
Copy link
Member

/milestone v1.28
/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added this to the v1.28 milestone Jul 19, 2023
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 19, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 9fdfc979adfc6b317c2891351d5bb13f962577e5

@logicalhan
Copy link
Member

/assign @deads2k

@furkatgofurov7
Copy link
Member

As per slack discussion moving this out of the current milestone.

/milestone next

@k8s-ci-robot
Copy link
Contributor

@furkatgofurov7: The provided milestone is not valid for this repository. Milestones in this repository: [next-candidate, v1.16, v1.17, v1.18, v1.19, v1.20, v1.21, v1.22, v1.23, v1.24, v1.25, v1.26, v1.27, v1.28]

Use /milestone clear to clear the milestone.

In response to this:

As per slack discussion moving this out of the current milestone.

/milestone next

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@furkatgofurov7
Copy link
Member

/milestone next-candidate

@k8s-ci-robot k8s-ci-robot modified the milestones: v1.28, next-candidate Jul 24, 2023
Copy link
Member

@logicalhan logicalhan left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@rexagod
Copy link
Member Author

rexagod commented Oct 3, 2023

/assign @johnbelamaric

(since this needs an approval from anyone of the following)

sig-architecture-approvers:
- dims
- derekwaynecarr
- johnbelamaric

@johnbelamaric
Copy link
Member

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: johnbelamaric, logicalhan, rexagod

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 Oct 3, 2023
@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Oct 4, 2023

@rexagod: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-kubernetes-e2e-gce-cos-alpha-features 8ade783763a71e2c4c9e396b96bd0d7faba42b1b link false /test pull-kubernetes-e2e-gce-cos-alpha-features
pull-kubernetes-e2e-capz-windows 8ade783763a71e2c4c9e396b96bd0d7faba42b1b link false /test pull-kubernetes-e2e-capz-windows
pull-kubernetes-e2e-capz-azure-file-vmss 8ade783763a71e2c4c9e396b96bd0d7faba42b1b link false /test pull-kubernetes-e2e-capz-azure-file-vmss
pull-kubernetes-e2e-capz-conformance 8ade783763a71e2c4c9e396b96bd0d7faba42b1b link false /test pull-kubernetes-e2e-capz-conformance
pull-kubernetes-e2e-capz-azure-disk-vmss 8ade783763a71e2c4c9e396b96bd0d7faba42b1b link false /test pull-kubernetes-e2e-capz-azure-disk-vmss
pull-kubernetes-e2e-capz-azure-file 8ade783763a71e2c4c9e396b96bd0d7faba42b1b link false /test pull-kubernetes-e2e-capz-azure-file
pull-kubernetes-e2e-capz-azure-disk 8ade783763a71e2c4c9e396b96bd0d7faba42b1b link false /test pull-kubernetes-e2e-capz-azure-disk

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot merged commit 3c94af7 into kubernetes:master Oct 4, 2023
12 checks passed
@k8s-ci-robot k8s-ci-robot modified the milestones: next-candidate, v1.29 Oct 4, 2023
rexagod added a commit to rexagod/enhancements that referenced this pull request Oct 4, 2023
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. area/dependency Issues or PRs related to dependency changes cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

6 participants