You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/addons/v1beta1/clusterresourceset_types.go
-6Lines changed: 0 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -135,8 +135,6 @@ type ClusterResourceSetV1Beta2Status struct {
135
135
// +listType=map
136
136
// +listMapKey=type
137
137
// +kubebuilder:validation:MaxItems=32
138
-
// +Metrics:stateset:name="status_condition",help="The condition of a clusterresourceset.",labelName="status",JSONPath=.status,list={"True","False","Unknown"},labelsFromPath={"type":".type"}
139
-
// +Metrics:gauge:name="status_condition_last_transition_time",help="The condition's last transition time of a clusterresourceset.",valueFrom=.lastTransitionTime,labelsFromPath={"type":".type","status":".status"}
Copy file name to clipboardExpand all lines: api/addons/v1beta2/clusterresourceset_types.go
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,8 @@ type ClusterResourceSetStatus struct {
122
122
// +listType=map
123
123
// +listMapKey=type
124
124
// +kubebuilder:validation:MaxItems=32
125
+
// +Metrics:stateset:name="status_condition",help="The condition of a clusterresourceset.",labelName="status",JSONPath=.status,list={"True","False","Unknown"},labelsFromPath={"type":".type"}
126
+
// +Metrics:gauge:name="status_condition_last_transition_time",help="The condition's last transition time of a clusterresourceset.",valueFrom=.lastTransitionTime,labelsFromPath={"type":".type","status":".status"}
Copy file name to clipboardExpand all lines: api/bootstrap/kubeadm/v1beta1/kubeadmconfig_types.go
-11Lines changed: 0 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -502,8 +502,6 @@ type KubeadmConfigV1Beta2Status struct {
502
502
// +listType=map
503
503
// +listMapKey=type
504
504
// +kubebuilder:validation:MaxItems=32
505
-
// +Metrics:stateset:name="status_condition",help="The condition of a kubeadmconfig.",labelName="status",JSONPath=.status,list={"True","False","Unknown"},labelsFromPath={"type":".type"}
506
-
// +Metrics:gauge:name="status_condition_last_transition_time",help="The condition's last transition time of a kubeadmconfig.",valueFrom=.lastTransitionTime,labelsFromPath={"type":".type","status":".status"}
// +Metrics:info:name="annotation_paused",JSONPath=.annotations['cluster\.x-k8s\.io/paused'],help="Whether the kubeadmconfig is paused and any of its resources will not be processed by the controllers.",labelsFromPath={paused_value:"."}
Copy file name to clipboardExpand all lines: api/bootstrap/kubeadm/v1beta2/kubeadmconfig_types.go
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -453,6 +453,8 @@ type KubeadmConfigStatus struct {
453
453
// +listType=map
454
454
// +listMapKey=type
455
455
// +kubebuilder:validation:MaxItems=32
456
+
// +Metrics:stateset:name="status_condition",help="The condition of a kubeadmconfig.",labelName="status",JSONPath=.status,list={"True","False","Unknown"},labelsFromPath={"type":".type"}
457
+
// +Metrics:gauge:name="status_condition_last_transition_time",help="The condition's last transition time of a kubeadmconfig.",valueFrom=.lastTransitionTime,labelsFromPath={"type":".type","status":".status"}
// +Metrics:info:name="annotation_paused",JSONPath=.annotations['cluster\.x-k8s\.io/paused'],help="Whether the kubeadmconfig is paused and any of its resources will not be processed by the controllers.",labelsFromPath={paused_value:"."}
Copy file name to clipboardExpand all lines: api/controlplane/kubeadm/v1beta1/kubeadm_control_plane_types.go
-17Lines changed: 0 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,6 @@ type KubeadmControlPlaneSpec struct {
83
83
// odd numbers are permitted, as per [etcd best practice](https://etcd.io/docs/v3.3.12/faq/#why-an-odd-number-of-cluster-members).
84
84
// This is a pointer to distinguish between explicit zero and not specified.
85
85
// +optional
86
-
// +Metrics:gauge:name="spec_replicas",help="The number of desired machines for a kubeadmcontrolplane."
87
86
Replicas*int32`json:"replicas,omitempty"`
88
87
89
88
// version defines the desired Kubernetes version.
@@ -215,7 +214,6 @@ type RollingUpdate struct {
215
214
// Example: when this is set to 1, the control plane can be scaled
216
215
// up immediately when the rolling update starts.
217
216
// +optional
218
-
// +Metrics:gauge:name="spec_strategy_rollingupdate_max_surge",help="Maximum number of replicas that can be scheduled above the desired number of replicas during a rolling update of a kubeadmcontrolplane."
@@ -297,7 +295,6 @@ type KubeadmControlPlaneStatus struct {
297
295
// replicas is the total number of non-terminated machines targeted by this control plane
298
296
// (their labels match the selector).
299
297
// +optional
300
-
// +Metrics:gauge:name="status_replicas",help="The number of replicas per kubeadmcontrolplane.",nilIsZero=true
301
298
Replicasint32`json:"replicas"`
302
299
303
300
// version represents the minimum Kubernetes version for the control plane machines
@@ -310,12 +307,10 @@ type KubeadmControlPlaneStatus struct {
310
307
// updatedReplicas is the total number of non-terminated machines targeted by this control plane
311
308
// that have the desired template spec.
312
309
// +optional
313
-
// +Metrics:gauge:name="status_replicas_updated",help="The number of updated replicas per kubeadmcontrolplane.",nilIsZero=true
314
310
UpdatedReplicasint32`json:"updatedReplicas"`
315
311
316
312
// readyReplicas is the total number of fully running and ready control plane machines.
317
313
// +optional
318
-
// +Metrics:gauge:name="status_replicas_ready",help="The number of ready replicas per kubeadmcontrolplane.",nilIsZero=true
319
314
ReadyReplicasint32`json:"readyReplicas"`
320
315
321
316
// unavailableReplicas is the total number of unavailable machines targeted by this control plane.
@@ -327,7 +322,6 @@ type KubeadmControlPlaneStatus struct {
327
322
// Deprecated: This field is deprecated and is going to be removed when support for v1beta1 will be dropped. Please see https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md for more details.
328
323
//
329
324
// +optional
330
-
// +Metrics:gauge:name="status_replicas_unavailable",help="The number of unavailable replicas per kubeadmcontrolplane.",nilIsZero=true
// initialized denotes that the KubeadmControlPlane API Server is initialized and thus
@@ -392,8 +386,6 @@ type KubeadmControlPlaneV1Beta2Status struct {
392
386
// +listType=map
393
387
// +listMapKey=type
394
388
// +kubebuilder:validation:MaxItems=32
395
-
// +Metrics:stateset:name="status_condition",help="The condition of a kubeadmcontrolplane.",labelName="status",JSONPath=".status",list={"True","False","Unknown"},labelsFromPath={"type":".type"}
396
-
// +Metrics:gauge:name="status_condition_last_transition_time",help="The condition's last transition time of a kubeadmcontrolplane.",valueFrom=.lastTransitionTime,labelsFromPath={"type":".type","status":".status"}
// +Metrics:info:name="info",help="Information about a kubeadmcontrolplane.",labelsFromPath={version:".spec.version"}
455
441
typeKubeadmControlPlanestruct {
456
442
metav1.TypeMeta`json:",inline"`
457
443
// metadata is the standard object's metadata.
458
444
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
459
445
// +optional
460
-
// +Metrics:info:name="annotation_paused",JSONPath=.annotations['cluster\.x-k8s\.io/paused'],help="Whether the kubeadmcontrolplane is paused and any of its resources will not be processed by the controllers.",labelsFromPath={paused_value:"."}
Copy file name to clipboardExpand all lines: api/controlplane/kubeadm/v1beta2/kubeadm_control_plane_types.go
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -421,6 +421,7 @@ type KubeadmControlPlaneSpec struct {
421
421
// odd numbers are permitted, as per [etcd best practice](https://etcd.io/docs/v3.3.12/faq/#why-an-odd-number-of-cluster-members).
422
422
// This is a pointer to distinguish between explicit zero and not specified.
423
423
// +optional
424
+
// +Metrics:gauge:name="spec_replicas",help="The number of desired machines for a kubeadmcontrolplane."
424
425
Replicas*int32`json:"replicas,omitempty"`
425
426
426
427
// version defines the desired Kubernetes version.
@@ -587,6 +588,7 @@ type KubeadmControlPlaneRolloutStrategyRollingUpdate struct {
587
588
// Example: when this is set to 1, the control plane can be scaled
588
589
// up immediately when the rolling update starts.
589
590
// +optional
591
+
// +Metrics:gauge:name="spec_strategy_rollingupdate_max_surge",help="Maximum number of replicas that can be scheduled above the desired number of replicas during a rolling update of a kubeadmcontrolplane."
@@ -667,6 +669,8 @@ type KubeadmControlPlaneStatus struct {
667
669
// +listType=map
668
670
// +listMapKey=type
669
671
// +kubebuilder:validation:MaxItems=32
672
+
// +Metrics:stateset:name="status_condition",help="The condition of a kubeadmcontrolplane.",labelName="status",JSONPath=".status",list={"True","False","Unknown"},labelsFromPath={"type":".type"}
673
+
// +Metrics:gauge:name="status_condition_last_transition_time",help="The condition's last transition time of a kubeadmcontrolplane.",valueFrom=.lastTransitionTime,labelsFromPath={"type":".type","status":".status"}
// availableReplicas is the number of available replicas targeted by this KubeadmControlPlane. A machine is considered available when Machine's Available condition is true.
697
703
// +optional
704
+
// +Metrics:gauge:name="status_replicas_available",help="The number of available replicas per kubeadmcontrolplane.",nilIsZero=true
// upToDateReplicas is the number of up-to-date replicas targeted by this KubeadmControlPlane. A machine is considered up-to-date when Machine's UpToDate condition is true.
701
708
// +optional
709
+
// +Metrics:gauge:name="status_replicas_uptodate",help="The number of up-to-date replicas per kubeadmcontrolplane.",nilIsZero=true
// +Metrics:info:name="info",help="Information about a kubeadmcontrolplane.",labelsFromPath={version:".spec.version"}
839
853
typeKubeadmControlPlanestruct {
840
854
metav1.TypeMeta`json:",inline"`
841
855
// metadata is the standard object's metadata.
842
856
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
843
857
// +optional
858
+
// +Metrics:info:name="annotation_paused",JSONPath=.annotations['cluster\.x-k8s\.io/paused'],help="Whether the kubeadmcontrolplane is paused and any of its resources will not be processed by the controllers.",labelsFromPath={paused_value:"."}
0 commit comments