Skip to content

Commit b14209e

Browse files
authored
fix: cluster printer columns (#140)
1 parent bf67b10 commit b14209e

File tree

3 files changed

+6
-381
lines changed

3 files changed

+6
-381
lines changed

api/clusters/v1alpha1/cluster_types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ const (
7474
// +kubebuilder:selectablefield:JSONPath=".spec.profile"
7575
// +kubebuilder:printcolumn:JSONPath=".spec.purposes",name="Purposes",type=string
7676
// +kubebuilder:printcolumn:JSONPath=`.status.phase`,name="Phase",type=string
77-
// +kubebuilder:printcolumn:JSONPath=`.metadata.labels["clusters.openmcp.cloud/k8sversion"]`,name="Version",type=string
78-
// +kubebuilder:printcolumn:JSONPath=`.metadata.labels["clusters.openmcp.cloud/provider"]`,name="Provider",type=string
77+
// +kubebuilder:printcolumn:JSONPath=`.metadata.labels.clusters\.openmcp\.cloud/k8sversion`,name="Version",type=string
78+
// +kubebuilder:printcolumn:JSONPath=`.metadata.labels.clusters\.openmcp\.cloud/provider`,name="Provider",type=string
7979
// +kubebuilder:printcolumn:JSONPath=".spec.profile",name="Profile",type=string,priority=10
80-
// +kubebuilder:printcolumn:JSONPath=`.metadata.annotations["clusters.openmcp.cloud/providerinfo"]`,name="Info",type=string,priority=10
80+
// +kubebuilder:printcolumn:JSONPath=`.metadata.annotations.clusters\.openmcp\.cloud/providerinfo`,name="Info",type=string,priority=10
8181
// +kubebuilder:printcolumn:JSONPath=".status.apiServer",name="APIServer",type=string,priority=10
8282
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
8383

api/crds/manifests/clusters.openmcp.cloud_clusters.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ spec:
2323
- jsonPath: .status.phase
2424
name: Phase
2525
type: string
26-
- jsonPath: .metadata.labels["clusters.openmcp.cloud/k8sversion"]
26+
- jsonPath: .metadata.labels.clusters\.openmcp\.cloud/k8sversion
2727
name: Version
2828
type: string
29-
- jsonPath: .metadata.labels["clusters.openmcp.cloud/provider"]
29+
- jsonPath: .metadata.labels.clusters\.openmcp\.cloud/provider
3030
name: Provider
3131
type: string
3232
- jsonPath: .spec.profile
3333
name: Profile
3434
priority: 10
3535
type: string
36-
- jsonPath: .metadata.annotations["clusters.openmcp.cloud/providerinfo"]
36+
- jsonPath: .metadata.annotations.clusters\.openmcp\.cloud/providerinfo
3737
name: Info
3838
priority: 10
3939
type: string

0 commit comments

Comments
 (0)