diff --git a/api/v1beta1/sveltoscluster_type.go b/api/v1beta1/sveltoscluster_type.go index 2a49bbb..5816320 100644 --- a/api/v1beta1/sveltoscluster_type.go +++ b/api/v1beta1/sveltoscluster_type.go @@ -222,6 +222,7 @@ type SveltosClusterStatus struct { //+kubebuilder:printcolumn:name="Ready",type="boolean",JSONPath=".status.ready",description="Indicates whether cluster is ready to be managed by sveltos" //+kubebuilder:printcolumn:name="Version",type="string",JSONPath=".status.version",description="Kubernetes version associated with this Cluster" //+kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of SveltosCluster" +//+kubebuilder:printcolumn:name="Shard",type="string",JSONPath=".metadata.annotations['sharding.projectsveltos.io/key']",description="Cluster Shard" //+kubebuilder:storageversion // SveltosCluster is the Schema for the SveltosCluster API diff --git a/config/crd/bases/lib.projectsveltos.io_sveltosclusters.yaml b/config/crd/bases/lib.projectsveltos.io_sveltosclusters.yaml index c74eb81..1a17ffd 100644 --- a/config/crd/bases/lib.projectsveltos.io_sveltosclusters.yaml +++ b/config/crd/bases/lib.projectsveltos.io_sveltosclusters.yaml @@ -27,6 +27,10 @@ spec: jsonPath: .metadata.creationTimestamp name: Age type: date + - description: Cluster Shard + jsonPath: .metadata.annotations['sharding.projectsveltos.io/key'] + name: Shard + type: string name: v1beta1 schema: openAPIV3Schema: diff --git a/lib/crd/sveltosclusters.go b/lib/crd/sveltosclusters.go index 517d1fc..187777b 100644 --- a/lib/crd/sveltosclusters.go +++ b/lib/crd/sveltosclusters.go @@ -45,6 +45,10 @@ spec: jsonPath: .metadata.creationTimestamp name: Age type: date + - description: Cluster Shard + jsonPath: .metadata.annotations['sharding.projectsveltos.io/key'] + name: Shard + type: string name: v1beta1 schema: openAPIV3Schema: diff --git a/manifests/apiextensions.k8s.io_v1_customresourcedefinition_sveltosclusters.lib.projectsveltos.io.yaml b/manifests/apiextensions.k8s.io_v1_customresourcedefinition_sveltosclusters.lib.projectsveltos.io.yaml index 6792250..c5c96c4 100644 --- a/manifests/apiextensions.k8s.io_v1_customresourcedefinition_sveltosclusters.lib.projectsveltos.io.yaml +++ b/manifests/apiextensions.k8s.io_v1_customresourcedefinition_sveltosclusters.lib.projectsveltos.io.yaml @@ -26,6 +26,10 @@ spec: jsonPath: .metadata.creationTimestamp name: Age type: date + - description: Cluster Shard + jsonPath: .metadata.annotations['sharding.projectsveltos.io/key'] + name: Shard + type: string name: v1beta1 schema: openAPIV3Schema: