core: add PHASE column to cephbn
The current behavior does not print the PHASE column, as most other
CRDs do. E.g.:
```
~ $ k get cephbn chorus
NAME AGE
chorus 10d
```
Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
(cherry picked from commit 8866d47d92)
This commit is contained in:
1 parent
283cf54234
commit
913d02a02b
3 files changed
+18
-2
No files matched your search
@@ -897,7 +897,14 @@ spec:
|
||||
singular: cephbucketnotification
|
||||
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: CephBucketNotification represents a Bucket Notifications
|
||||
|
||||
@@ -898,7 +898,14 @@ spec:
|
||||
singular: cephbucketnotification
|
||||
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: CephBucketNotification represents a Bucket Notifications
|
||||
|
||||
@@ -2616,6 +2616,8 @@ type KafkaEndpointSpec struct {
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
|
||||
// CephBucketNotification represents a Bucket Notifications
|
||||
// +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase`
|
||||
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
|
||||
// +kubebuilder:subresource:status
|
||||
// +kubebuilder:resource:shortName=cephbn
|
||||
type CephBucketNotification struct {
|
||||
|
||||
Reference in new issue
Block a user