diff --git a/deploy/charts/rook-ceph/templates/resources.yaml b/deploy/charts/rook-ceph/templates/resources.yaml index 0fa310b71..380576438 100644 --- a/deploy/charts/rook-ceph/templates/resources.yaml +++ b/deploy/charts/rook-ceph/templates/resources.yaml @@ -9387,7 +9387,14 @@ spec: singular: cephnfs 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: CephNFS represents a Ceph NFS diff --git a/deploy/examples/crds.yaml b/deploy/examples/crds.yaml index 59e3e660a..2a8ccf65c 100644 --- a/deploy/examples/crds.yaml +++ b/deploy/examples/crds.yaml @@ -9380,7 +9380,14 @@ spec: singular: cephnfs 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: CephNFS represents a Ceph NFS diff --git a/pkg/apis/ceph.rook.io/v1/types.go b/pkg/apis/ceph.rook.io/v1/types.go index 3b42cea1f..a8b63ba82 100755 --- a/pkg/apis/ceph.rook.io/v1/types.go +++ b/pkg/apis/ceph.rook.io/v1/types.go @@ -2699,6 +2699,8 @@ type RGWServiceSpec struct { // CephNFS represents a Ceph NFS // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase` +// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` // +kubebuilder:subresource:status type CephNFS struct { metav1.TypeMeta `json:",inline"`