Skip to content

Commit f9a2173

Browse files
authored
Merge pull request #3483 from chrischdi/pr-capv-fixup-printcolumns-apiendpoint
🐛 govmomi: fix additional printer columns for ControlPlaneEndpoint
2 parents a6a600c + 453e293 commit f9a2173

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

apis/v1alpha3/vspherecluster_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ type VSphereClusterStatus struct {
9090
// +kubebuilder:subresource:status
9191
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.ready",description="Cluster infrastructure is ready for VSphereMachine"
9292
// +kubebuilder:printcolumn:name="Server",type="string",JSONPath=".spec.server",description="Server is the address of the vSphere endpoint"
93-
// +kubebuilder:printcolumn:name="ControlPlaneEndpoint",type="string",JSONPath=".spec.controlPlaneEndpoint[0]",description="API Endpoint",priority=1
93+
// +kubebuilder:printcolumn:name="ControlPlaneEndpoint",type="string",JSONPath=".spec.controlPlaneEndpoint.host",description="API Endpoint",priority=1
9494
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of Machine"
9595

9696
// VSphereCluster is the Schema for the vsphereclusters API

apis/v1alpha4/vspherecluster_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ type VSphereClusterStatus struct {
6767
// +kubebuilder:subresource:status
6868
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.ready",description="Cluster infrastructure is ready for VSphereMachine"
6969
// +kubebuilder:printcolumn:name="Server",type="string",JSONPath=".spec.server",description="Server is the address of the vSphere endpoint"
70-
// +kubebuilder:printcolumn:name="ControlPlaneEndpoint",type="string",JSONPath=".spec.controlPlaneEndpoint[0]",description="API Endpoint",priority=1
70+
// +kubebuilder:printcolumn:name="ControlPlaneEndpoint",type="string",JSONPath=".spec.controlPlaneEndpoint.host",description="API Endpoint",priority=1
7171
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of Machine"
7272

7373
// VSphereCluster is the Schema for the vsphereclusters API

apis/v1beta1/vspherecluster_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ type VSphereClusterV1Beta2Status struct {
197197
// +kubebuilder:subresource:status
198198
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.ready",description="Cluster infrastructure is ready for VSphereMachine"
199199
// +kubebuilder:printcolumn:name="Server",type="string",JSONPath=".spec.server",description="Server is the address of the vSphere endpoint."
200-
// +kubebuilder:printcolumn:name="ControlPlaneEndpoint",type="string",JSONPath=".spec.controlPlaneEndpoint[0]",description="API Endpoint",priority=1
200+
// +kubebuilder:printcolumn:name="ControlPlaneEndpoint",type="string",JSONPath=".spec.controlPlaneEndpoint.host",description="API Endpoint",priority=1
201201
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of Machine"
202202

203203
// VSphereCluster is the Schema for the vsphereclusters API.

config/default/crd/bases/infrastructure.cluster.x-k8s.io_vsphereclusters.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ spec:
2626
name: Server
2727
type: string
2828
- description: API Endpoint
29-
jsonPath: .spec.controlPlaneEndpoint[0]
29+
jsonPath: .spec.controlPlaneEndpoint.host
3030
name: ControlPlaneEndpoint
3131
priority: 1
3232
type: string
@@ -451,7 +451,7 @@ spec:
451451
name: Server
452452
type: string
453453
- description: API Endpoint
454-
jsonPath: .spec.controlPlaneEndpoint[0]
454+
jsonPath: .spec.controlPlaneEndpoint.host
455455
name: ControlPlaneEndpoint
456456
priority: 1
457457
type: string
@@ -616,7 +616,7 @@ spec:
616616
name: Server
617617
type: string
618618
- description: API Endpoint
619-
jsonPath: .spec.controlPlaneEndpoint[0]
619+
jsonPath: .spec.controlPlaneEndpoint.host
620620
name: ControlPlaneEndpoint
621621
priority: 1
622622
type: string

0 commit comments

Comments
 (0)