core: add PHASE column to cephor

The current behavior does not print the PHASE column, as most other
CRDs do. E.g.:

```
 ~ $ k get cephor lfa
NAME   AGE
lfa    45d
```

Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
(cherry picked from commit 6d9c884259)
This commit is contained in:
Joshua Hoblitt authored and Mergify committed 2025-09-26 18:21:50 +00:00
1 parent 283cf54234
commit 35be9ce5dd
3 files changed
+18 -2

No files matched your search

@@ -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
+8 -1
View File
@@ -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
+2
View File
@@ -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 {