diff --git a/deploy/charts/rook-ceph/templates/resources.yaml b/deploy/charts/rook-ceph/templates/resources.yaml index f5107397d..2b19b631c 100644 --- a/deploy/charts/rook-ceph/templates/resources.yaml +++ b/deploy/charts/rook-ceph/templates/resources.yaml @@ -11400,7 +11400,14 @@ spec: singular: cephobjectrealm scope: Namespaced versions: - - name: v1 + - additionalPrinterColumns: + - jsonPath: .status.phase + name: Phase + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1 schema: openAPIV3Schema: description: CephObjectRealm represents a Ceph Object Store Gateway Realm diff --git a/deploy/examples/crds.yaml b/deploy/examples/crds.yaml index 7b3364c42..c91e58651 100644 --- a/deploy/examples/crds.yaml +++ b/deploy/examples/crds.yaml @@ -11392,7 +11392,14 @@ spec: singular: cephobjectrealm scope: Namespaced versions: - - name: v1 + - additionalPrinterColumns: + - jsonPath: .status.phase + name: Phase + type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1 schema: openAPIV3Schema: description: CephObjectRealm represents a Ceph Object Store Gateway Realm diff --git a/pkg/apis/ceph.rook.io/v1/types.go b/pkg/apis/ceph.rook.io/v1/types.go index 94bd03d51..e82951878 100755 --- a/pkg/apis/ceph.rook.io/v1/types.go +++ b/pkg/apis/ceph.rook.io/v1/types.go @@ -2345,6 +2345,8 @@ type ObjectUserKey struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // CephObjectRealm represents a Ceph Object Store Gateway Realm +// +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase` +// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` // +kubebuilder:subresource:status // +kubebuilder:resource:shortName=cephor type CephObjectRealm struct {