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/v1beta1/cluster_types.go
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,7 @@ const (
45
45
typeClusterSpecstruct {
46
46
// Paused can be used to prevent controllers from processing the Cluster and all its associated objects.
47
47
// +optional
48
+
// +Metrics:gauge:name="spec_paused",help="Whether the cluster is paused and any of its resources will not be processed by the controllers.",nilIsZero=true
48
49
Pausedbool`json:"paused,omitempty"`
49
50
50
51
// Cluster network configuration.
@@ -418,6 +419,7 @@ type ClusterStatus struct {
418
419
419
420
// Conditions defines current service state of the cluster.
420
421
// +optional
422
+
// +Metrics:stateset:name="status_condition",help="The condition of a cluster.",labelName="status",JSONPath={"status"},list={"True","False","Unknown"},labelsFromPath={"type":{"type"}}
421
423
ConditionsConditions`json:"conditions,omitempty"`
422
424
423
425
// ObservedGeneration is the latest generation observed by the controller.
@@ -486,8 +488,14 @@ func (v APIEndpoint) String() string {
486
488
// +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.topology.version",description="Kubernetes version associated with this Cluster"
// +Metrics:info:name="annotation_paused",JSONPath={"annotations","cluster.x-k8s.io/paused"},help="Whether the cluster is paused and any of its resources will not be processed by the controllers.",labelsFromPath={paused_value:{}}
0 commit comments