-
Notifications
You must be signed in to change notification settings - Fork 458
✨ metrics: add generator for kube-state-metrics customresource configuration #1043
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
base: main
Are you sure you want to change the base?
Conversation
9e798ce to
3b209a2
Compare
| @@ -0,0 +1,122 @@ | |||
| /* | |||
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.
If wanted, I can volunteer to maintain this part of controller-gen (and/or also help on other parts of controller-tools) :-)
9b0a996 to
f7862f4
Compare
f7862f4 to
28f149a
Compare
28f149a to
8fe2d86
Compare
|
We'll get back to this eventually, just low bandwith at the moment |
|
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
|
/remove-lifecycle stale |
8fe2d86 to
8e10d2c
Compare
6d632a5 to
3cfbf5e
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: chrischdi The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
b2a1646 to
fb8e57d
Compare
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
|
@k8s-triage-robot: Closed this PR. In response to this:
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-sigs/prow repository. |
|
/reopen |
|
@chrischdi: Reopened this PR. In response to this:
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-sigs/prow repository. |
|
/remove-lifecycle rotten |
|
@JoelSpeed If you're fine with this in general (already discussed this with Vince+Alvaro in the past and they are okay with it as long as we mark it experimental in some way for now) + we all have time to push this towards completion. Happy to invest time in reviews |
|
I'm not going to have time to do a deep dive on this until next week, but at the high level this seems like a reasonable addition. Would like to have some discussion (maybe at the DV subproject meeting) about precedence for similar markers, and the patterns for defining the markers so that we can be somewhat consistent |
Sounds good, no rush!
Sounds reasonable. @chrischdi would be good if you could bring this up and drive forward. |
…tion and a clusterrole
fb8e57d to
623b301
Compare
| "sigs.k8s.io/controller-tools/pkg/crd" | ||
| "sigs.k8s.io/controller-tools/pkg/deepcopy" | ||
| "sigs.k8s.io/controller-tools/pkg/genall" | ||
| "sigs.k8s.io/controller-tools/pkg/genall/help" |
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.
🧵 Marker prefix
Follow-up to the discussion in the meeting.
I think we should go with a k8s:controller-gen prefix.
I think it clearly identifies that these markers belong to conroller-gen. The name of this binary will remain the same, independent of in which repository it is hosted.
I thought a bit about if it's worth renaming the repo to make controller-gen easier to find.
I would not do it:
- we host some other tools in this repo
- we might want to host additional tools in this repo going forward
- it's a breaking change for setup-envtest as it uses release artifacts from this repo
- it's disruptive in general and requires a bunch of effort
I think overall it's not worth it just to make it slightly easier for users to find controller-gen to open issues. It's in general not hard to find controller-gen. A similar situation exists for e.g. kubeadm.
I see how kuberbuilder was misleading as a marker prefix. I think the same problem does not exist in the same way for controller-gen
@chrischdi @JoelSpeed WDYT?
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.
I agree. I think mostly controller-gen get's either installed via go install or downloaded from the release page. So should be good enough to find the repo with that prefix.
This adds a generator to generate a customresource configuration file for kube-state-metrics from markers.
With that configuration it is possible to get metrics for CRs like kube-state-metrics exposes for core resources.
(xref)
Example usage:
controller-gen metrics output:metrics:stdout \ paths=./api/...\ > crd-config.yamlIntroduced markers:
Example usage: kubernetes-sigs/cluster-api#9347