Skip to content

Commit

Permalink
config/metrics: rename files to match generated ones
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Aug 29, 2024
1 parent 6138cac commit 1d67f82
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -616,13 +616,11 @@ generate-e2e-templates-main: $(KUSTOMIZE)

.PHONY: generate-metrics-config
generate-metrics-config: $(CONTROLLER_GEN) ## Generate ./config/metrics/crd-metrics-config.yaml
OUTPUT_FILE="./config/metrics/crd-metrics-config.yaml"; \
$(CONTROLLER_GEN) metrics output:metrics:stdout \
$(CONTROLLER_GEN) metrics output:metrics:dir=./config/metrics \
paths=./api/... \
paths=./controlplane/kubeadm/api/... \
paths=./bootstrap/kubeadm/api/... \
paths=./exp/api/... \
> "$${OUTPUT_FILE}"
paths=./exp/api/...

.PHONY: generate-diagrams
generate-diagrams: ## Generate diagrams for *.plantuml files
Expand Down
File renamed without changes.
17 changes: 9 additions & 8 deletions config/metrics/crd-clusterrole.yaml → config/metrics/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ metadata:
labels:
kube-state-metrics/aggregate-to-manager: "true"
rules:
- apiGroups:
- bootstrap.cluster.x-k8s.io
resources:
- kubeadmconfigs
verbs:
- get
- list
- watch
- apiGroups:
- cluster.x-k8s.io
resources:
Expand All @@ -20,6 +28,7 @@ rules:
- get
- list
- watch

- apiGroups:
- controlplane.cluster.x-k8s.io
resources:
Expand All @@ -28,11 +37,3 @@ rules:
- get
- list
- watch
- apiGroups:
- bootstrap.cluster.x-k8s.io
resources:
- kubeadmconfigs
verbs:
- get
- list
- watch

0 comments on commit 1d67f82

Please sign in to comment.