Skip to content

Commit 4e61080

Browse files
committed
metrics: regenerate
1 parent 2838228 commit 4e61080

File tree

2 files changed

+27
-26
lines changed

2 files changed

+27
-26
lines changed

config/metrics/metrics.yaml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Generated by controller-gen version v0.0.0-00010101000000-000000000000
2+
# Generated based on types for kube-state-metrics v2.13.0
3+
---
4+
kind: CustomResourceStateMetrics
15
spec:
26
resources:
37
- errorLogV: 0
@@ -525,14 +529,12 @@ spec:
525529
info:
526530
labelsFromPath:
527531
node_name:
528-
- status
529-
- nodeRef
530532
- name
531533
node_uid:
532-
- status
533-
- nodeRef
534534
- uid
535-
path: null
535+
path:
536+
- status
537+
- nodeRef
536538
type: Info
537539
help: Information about the node reference of a machine.
538540
name: status_noderef
@@ -845,9 +847,9 @@ spec:
845847
- each:
846848
info:
847849
labelsFromPath:
848-
name:
849-
- metadata
850-
- name
850+
maxUnhealthy:
851+
- spec
852+
- maxUnhealthy
851853
path: null
852854
type: Info
853855
help: Information about a machinehealthcheck.
@@ -905,7 +907,7 @@ spec:
905907
name: status_condition_last_transition_time
906908
- each:
907909
gauge:
908-
nilIsZero: false
910+
nilIsZero: true
909911
path:
910912
- status
911913
- currentHealthy
@@ -915,17 +917,17 @@ spec:
915917
name: status_current_healthy
916918
- each:
917919
gauge:
918-
nilIsZero: false
920+
nilIsZero: true
919921
path:
920922
- status
921923
- expectedMachines
922924
valueFrom: null
923925
type: Gauge
924-
help: Total number of pods counted by this machinehealthcheck.
926+
help: Total number of machines counted by this machinehealthcheck.
925927
name: status_expected_machines
926928
- each:
927929
gauge:
928-
nilIsZero: false
930+
nilIsZero: true
929931
path:
930932
- status
931933
- remediationsAllowed
@@ -1017,7 +1019,7 @@ spec:
10171019
- version
10181020
path: null
10191021
type: Info
1020-
help: ""
1022+
help: Information about a machinepool.
10211023
name: info
10221024
- each:
10231025
info:
@@ -1300,7 +1302,7 @@ spec:
13001302
name: status_replicas_available
13011303
- each:
13021304
gauge:
1303-
nilIsZero: false
1305+
nilIsZero: true
13041306
path:
13051307
- status
13061308
- fullyLabeledReplicas
@@ -1488,4 +1490,3 @@ spec:
14881490
help: The number of updated replicas per kubeadmcontrolplane.
14891491
name: status_replicas_updated
14901492
resourcePlural: ""
1491-

config/metrics/rbac.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,28 @@
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRole
44
metadata:
5-
name: kube-state-metrics-custom-resource-capi
65
labels:
76
kube-state-metrics/aggregate-to-manager: "true"
7+
name: manager-metrics-role
88
rules:
9+
- apiGroups:
10+
- bootstrap.cluster.x-k8s.io
11+
resources:
12+
- kubeadmconfigs
13+
verbs:
14+
- get
15+
- list
16+
- watch
917
- apiGroups:
1018
- cluster.x-k8s.io
1119
resources:
1220
- clusterclasses
1321
- clusters
1422
- machinedeployments
23+
- machinehealthchecks
1524
- machinepools
16-
- machinesets
1725
- machines
18-
- machinehealthchecks
26+
- machinesets
1927
verbs:
2028
- get
2129
- list
@@ -28,11 +36,3 @@ rules:
2836
- get
2937
- list
3038
- watch
31-
- apiGroups:
32-
- bootstrap.cluster.x-k8s.io
33-
resources:
34-
- kubeadmconfigs
35-
verbs:
36-
- get
37-
- list
38-
- watch

0 commit comments

Comments
 (0)