Skip to content

Commit cf76710

Browse files
committed
fixes
1 parent 4e8c13f commit cf76710

7 files changed

+39
-39
lines changed

apis/v1beta1/vspherecluster_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ type VSphereClusterStatus struct {
110110
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of Machine"
111111

112112
// VSphereCluster is the Schema for the vsphereclusters API
113-
// +Metrics:gvk:namePrefix="capv_vspherecluster"
113+
// +Metrics:gvk:namePrefix="capi_vspherecluster"
114114
// +Metrics:labelFromPath:name="name",JSONPath=".metadata.name"
115115
// +Metrics:labelFromPath:name="namespace",JSONPath=".metadata.namespace"
116116
// +Metrics:labelFromPath:name="uid",JSONPath=".metadata.uid"

apis/v1beta1/vsphereclusteridentity_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func (c *VSphereClusterIdentity) SetConditions(conditions clusterv1.Conditions)
8686
// +kubebuilder:subresource:status
8787

8888
// VSphereClusterIdentity defines the account to be used for reconciling clusters
89-
// +Metrics:gvk:namePrefix="capv_vsphereclusteridentity"
89+
// +Metrics:gvk:namePrefix="capi_vsphereclusteridentity"
9090
// +Metrics:labelFromPath:name="name",JSONPath=".metadata.name"
9191
// +Metrics:labelFromPath:name="namespace",JSONPath=".metadata.namespace"
9292
// +Metrics:labelFromPath:name="uid",JSONPath=".metadata.uid"

apis/v1beta1/vspheredeploymentzone_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ type VSphereDeploymentZoneStatus struct {
9292
// +kubebuilder:subresource:status
9393

9494
// VSphereDeploymentZone is the Schema for the vspheredeploymentzones API
95-
// +Metrics:gvk:namePrefix="capv_vspheredeploymentzone"
95+
// +Metrics:gvk:namePrefix="capi_vspheredeploymentzone"
9696
// +Metrics:labelFromPath:name="name",JSONPath=".metadata.name"
9797
// +Metrics:labelFromPath:name="namespace",JSONPath=".metadata.namespace"
9898
// +Metrics:labelFromPath:name="uid",JSONPath=".metadata.uid"

apis/v1beta1/vspherefailuredomain_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ type FailureDomainHosts struct {
9595
// +kubebuilder:resource:path=vspherefailuredomains,scope=Cluster,categories=cluster-api
9696

9797
// VSphereFailureDomain is the Schema for the vspherefailuredomains API
98-
// +Metrics:gvk:namePrefix="capv_vspherefailuredomain"
98+
// +Metrics:gvk:namePrefix="capi_vspherefailuredomain"
9999
// +Metrics:labelFromPath:name="name",JSONPath=".metadata.name"
100100
// +Metrics:labelFromPath:name="namespace",JSONPath=".metadata.namespace"
101101
// +Metrics:labelFromPath:name="uid",JSONPath=".metadata.uid"

apis/v1beta1/vspheremachine_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ type VSphereMachineStatus struct {
7878
Ready bool `json:"ready"`
7979

8080
// Addresses contains the VSphere instance associated addresses.
81-
// +Metrics:info:name="addresses",help="Address information about a vspheremachine.",labelsFromPath={address:".address",type:".type"}
81+
// +Metrics:info:name="status_addresses",help="Address information about a vspheremachine.",labelsFromPath={address:".address",type:".type"}
8282
Addresses []clusterv1.MachineAddress `json:"addresses,omitempty"`
8383

8484
// Network returns the network status for each of the machine's configured
@@ -142,7 +142,7 @@ type VSphereMachineStatus struct {
142142
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of Machine"
143143

144144
// VSphereMachine is the Schema for the vspheremachines API
145-
// +Metrics:gvk:namePrefix="capv_vspheremachine"
145+
// +Metrics:gvk:namePrefix="capi_vspheremachine"
146146
// +Metrics:labelFromPath:name="name",JSONPath=".metadata.name"
147147
// +Metrics:labelFromPath:name="namespace",JSONPath=".metadata.namespace"
148148
// +Metrics:labelFromPath:name="uid",JSONPath=".metadata.uid"

apis/v1beta1/vspherevm_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ type VSphereVMStatus struct {
104104
// This field is required at runtime for other controllers that read
105105
// this CRD as unstructured data.
106106
// +optional
107-
// +Metrics:info:name="addresses",help="Address information about a vspherevm.",labelsFromPath={address:"."}
107+
// +Metrics:info:name="status_addresses",help="Address information about a vspherevm.",labelsFromPath={address:"."}
108108
Addresses []string `json:"addresses,omitempty"`
109109

110110
// CloneMode is the type of clone operation used to clone this VM. Since
@@ -190,7 +190,7 @@ type VSphereVMStatus struct {
190190
// +kubebuilder:subresource:status
191191

192192
// VSphereVM is the Schema for the vspherevms API
193-
// +Metrics:gvk:namePrefix="capv_vspherevm"
193+
// +Metrics:gvk:namePrefix="capi_vspherevm"
194194
// +Metrics:labelFromPath:name="name",JSONPath=".metadata.name"
195195
// +Metrics:labelFromPath:name="namespace",JSONPath=".metadata.namespace"
196196
// +Metrics:labelFromPath:name="uid",JSONPath=".metadata.uid"

config/metrics/crd-metrics-config.yaml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
uid:
2222
- metadata
2323
- uid
24-
metricNamePrefix: capv_vspherecluster
24+
metricNamePrefix: capi_vspherecluster
2525
metrics:
2626
- each:
2727
info:
@@ -142,7 +142,7 @@ spec:
142142
uid:
143143
- metadata
144144
- uid
145-
metricNamePrefix: capv_vsphereclusteridentity
145+
metricNamePrefix: capi_vsphereclusteridentity
146146
metrics:
147147
- each:
148148
info:
@@ -252,7 +252,7 @@ spec:
252252
uid:
253253
- metadata
254254
- uid
255-
metricNamePrefix: capv_vspheredeploymentzone
255+
metricNamePrefix: capi_vspheredeploymentzone
256256
metrics:
257257
- each:
258258
info:
@@ -362,7 +362,7 @@ spec:
362362
uid:
363363
- metadata
364364
- uid
365-
metricNamePrefix: capv_vspherefailuredomain
365+
metricNamePrefix: capi_vspherefailuredomain
366366
metrics:
367367
- each:
368368
info:
@@ -437,22 +437,8 @@ spec:
437437
uid:
438438
- metadata
439439
- uid
440-
metricNamePrefix: capv_vspheremachine
440+
metricNamePrefix: capi_vspheremachine
441441
metrics:
442-
- each:
443-
info:
444-
labelFromKey: ""
445-
labelsFromPath:
446-
address:
447-
- address
448-
type:
449-
- type
450-
path:
451-
- status
452-
- addresses
453-
type: Info
454-
help: Address information about a vspheremachine.
455-
name: addresses
456442
- each:
457443
info:
458444
labelFromKey: ""
@@ -506,6 +492,20 @@ spec:
506492
type: Info
507493
help: Owner references.
508494
name: owner
495+
- each:
496+
info:
497+
labelFromKey: ""
498+
labelsFromPath:
499+
address:
500+
- address
501+
type:
502+
- type
503+
path:
504+
- status
505+
- addresses
506+
type: Info
507+
help: Address information about a vspheremachine.
508+
name: status_addresses
509509
- each:
510510
stateSet:
511511
labelName: status
@@ -561,19 +561,8 @@ spec:
561561
uid:
562562
- metadata
563563
- uid
564-
metricNamePrefix: capv_vspherevm
564+
metricNamePrefix: capi_vspherevm
565565
metrics:
566-
- each:
567-
info:
568-
labelFromKey: ""
569-
labelsFromPath:
570-
address: []
571-
path:
572-
- status
573-
- addresses
574-
type: Info
575-
help: Address information about a vspherevm.
576-
name: addresses
577566
- each:
578567
info:
579568
labelFromKey: ""
@@ -638,6 +627,17 @@ spec:
638627
type: Info
639628
help: Owner references.
640629
name: owner
630+
- each:
631+
info:
632+
labelFromKey: ""
633+
labelsFromPath:
634+
address: []
635+
path:
636+
- status
637+
- addresses
638+
type: Info
639+
help: Address information about a vspherevm.
640+
name: status_addresses
641641
- each:
642642
stateSet:
643643
labelName: status

0 commit comments

Comments
 (0)