diff --git a/apis/v1alpha3/vspherecluster_types.go b/apis/v1alpha3/vspherecluster_types.go index f575fc8129..0bb7f2f197 100644 --- a/apis/v1alpha3/vspherecluster_types.go +++ b/apis/v1alpha3/vspherecluster_types.go @@ -90,7 +90,7 @@ type VSphereClusterStatus struct { // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.ready",description="Cluster infrastructure is ready for VSphereMachine" // +kubebuilder:printcolumn:name="Server",type="string",JSONPath=".spec.server",description="Server is the address of the vSphere endpoint" -// +kubebuilder:printcolumn:name="ControlPlaneEndpoint",type="string",JSONPath=".spec.controlPlaneEndpoint[0]",description="API Endpoint",priority=1 +// +kubebuilder:printcolumn:name="ControlPlaneEndpoint",type="string",JSONPath=".spec.controlPlaneEndpoint.host",description="API Endpoint",priority=1 // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of Machine" // VSphereCluster is the Schema for the vsphereclusters API diff --git a/apis/v1alpha4/vspherecluster_types.go b/apis/v1alpha4/vspherecluster_types.go index 6e9771d9d2..288a9ee3dc 100644 --- a/apis/v1alpha4/vspherecluster_types.go +++ b/apis/v1alpha4/vspherecluster_types.go @@ -67,7 +67,7 @@ type VSphereClusterStatus struct { // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.ready",description="Cluster infrastructure is ready for VSphereMachine" // +kubebuilder:printcolumn:name="Server",type="string",JSONPath=".spec.server",description="Server is the address of the vSphere endpoint" -// +kubebuilder:printcolumn:name="ControlPlaneEndpoint",type="string",JSONPath=".spec.controlPlaneEndpoint[0]",description="API Endpoint",priority=1 +// +kubebuilder:printcolumn:name="ControlPlaneEndpoint",type="string",JSONPath=".spec.controlPlaneEndpoint.host",description="API Endpoint",priority=1 // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of Machine" // VSphereCluster is the Schema for the vsphereclusters API diff --git a/apis/v1beta1/vspherecluster_types.go b/apis/v1beta1/vspherecluster_types.go index 20186a02a9..8944f14ab1 100644 --- a/apis/v1beta1/vspherecluster_types.go +++ b/apis/v1beta1/vspherecluster_types.go @@ -197,7 +197,7 @@ type VSphereClusterV1Beta2Status struct { // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.ready",description="Cluster infrastructure is ready for VSphereMachine" // +kubebuilder:printcolumn:name="Server",type="string",JSONPath=".spec.server",description="Server is the address of the vSphere endpoint." -// +kubebuilder:printcolumn:name="ControlPlaneEndpoint",type="string",JSONPath=".spec.controlPlaneEndpoint[0]",description="API Endpoint",priority=1 +// +kubebuilder:printcolumn:name="ControlPlaneEndpoint",type="string",JSONPath=".spec.controlPlaneEndpoint.host",description="API Endpoint",priority=1 // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of Machine" // VSphereCluster is the Schema for the vsphereclusters API. diff --git a/config/default/crd/bases/infrastructure.cluster.x-k8s.io_vsphereclusters.yaml b/config/default/crd/bases/infrastructure.cluster.x-k8s.io_vsphereclusters.yaml index 56e0d53d43..272ec8fafd 100644 --- a/config/default/crd/bases/infrastructure.cluster.x-k8s.io_vsphereclusters.yaml +++ b/config/default/crd/bases/infrastructure.cluster.x-k8s.io_vsphereclusters.yaml @@ -26,7 +26,7 @@ spec: name: Server type: string - description: API Endpoint - jsonPath: .spec.controlPlaneEndpoint[0] + jsonPath: .spec.controlPlaneEndpoint.host name: ControlPlaneEndpoint priority: 1 type: string @@ -451,7 +451,7 @@ spec: name: Server type: string - description: API Endpoint - jsonPath: .spec.controlPlaneEndpoint[0] + jsonPath: .spec.controlPlaneEndpoint.host name: ControlPlaneEndpoint priority: 1 type: string @@ -616,7 +616,7 @@ spec: name: Server type: string - description: API Endpoint - jsonPath: .spec.controlPlaneEndpoint[0] + jsonPath: .spec.controlPlaneEndpoint.host name: ControlPlaneEndpoint priority: 1 type: string