Skip to content

Commit a5a6064

Browse files
committed
add capi_cluster_info markers
1 parent 7bb9e4a commit a5a6064

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/v1beta1/cluster_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ func (v APIEndpoint) String() string {
493493
// +Metrics:labelFromPath:name="name",JSONPath={"metadata","name"}
494494
// +Metrics:labelFromPath:name="namespace",JSONPath={"metadata","namespace"}
495495
// +Metrics:labelFromPath:name="uid",JSONPath={"metadata","uid"}
496+
// +Metrics:info:name="info",help="Information about a cluster.",labelsFromPath={topology_version:{"spec","topology","version"},topology_class:{"spec","topology","class"},control_plane_endpoint_host:{"spec","controlPlaneEndpoint","host"},control_plane_endpoint_port:{"spec","controlPlaneEndpoint","port"},control_plane_reference_kind:{"spec","controlPlaneRef","kind"},control_plane_reference_name:{"spec","controlPlaneRef","name"},infrastructure_reference_kind:{"spec","infrastructureRef","kind"},infrastructure_reference_name:{"spec","infrastructureRef","name"}}
496497
type Cluster struct {
497498
metav1.TypeMeta `json:",inline"`
498499
// +Metrics:gauge:name="created",JSONPath={"creationTimestamp"},help="Unix creation timestamp."

0 commit comments

Comments
 (0)