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

Implement kube_*_labels and kube_*_annotations metrics for pdb #1623

Merged
merged 1 commit into from
Oct 28, 2021

Conversation

arajkumar
Copy link
Contributor

What this PR does / why we need it:
This commit introduces kube_labels and kube_annotations metrics to
poddisruptionbudget to keep in consistency with other k8s objects.

Signed-off-by: Arunprasad Rajkumar arajkuma@redhat.com

How does this change affect the cardinality of KSM: (increases, decreases or does not change cardinality)
This change adds 2 new metrics PodDisruptionBudget(PDB) object to get information about labels and annotations.

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 #

This commit introduces kube_*_labels and kube_*_annotations metrics to
poddisruptionbudget to keep in consistency with other k8s objects.

Signed-off-by: Arunprasad Rajkumar <arajkuma@redhat.com>
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 27, 2021
@arajkumar
Copy link
Contributor Author

Hmm, I just realised that there is already a PR from my colleague to achieve the same.
#1620

@fpetkovski
Copy link
Contributor

Hi @arajkumar, it looks that that PR is still a draft. Which one of these two should we close?

1 similar comment
@fpetkovski
Copy link
Contributor

Hi @arajkumar, it looks that that PR is still a draft. Which one of these two should we close?

@philipgough
Copy link
Contributor

I can close #1620 in favour of this.

lgtm

@mrueg
Copy link
Member

mrueg commented Oct 28, 2021

/lgtm

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: arajkumar, mrueg, PhilipGough

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 lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 28, 2021
@k8s-ci-robot k8s-ci-robot merged commit e2328cf into kubernetes:master Oct 28, 2021
arajkumar added a commit to arajkumar/kube-state-metrics that referenced this pull request Dec 17, 2021
All other allowlist selectors are using plural form of resource name
except PDB. Actually it is a typo introduced by PR[1].

[1] kubernetes#1623

Signed-off-by: Arunprasad Rajkumar <arajkuma@redhat.com>
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.

5 participants