core: add fsid to the additionalPrinterColumns on cephcluster custom resource
Signed-off-by: xiaobaowen <xiaobaowen@deeproute.ai>
(cherry picked from commit df95c1add0)
This commit is contained in:
1 parent
233888e2f1
commit
aa029cdbf4
3 files changed
+9
No files matched your search
@@ -865,6 +865,10 @@ spec:
|
||||
- jsonPath: .spec.external.enable
|
||||
name: External
|
||||
type: boolean
|
||||
- description: Ceph FSID
|
||||
jsonPath: .status.ceph.fsid
|
||||
name: FSID
|
||||
type: string
|
||||
name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
|
||||
@@ -863,6 +863,10 @@ spec:
|
||||
- jsonPath: .spec.external.enable
|
||||
name: External
|
||||
type: boolean
|
||||
- description: Ceph FSID
|
||||
jsonPath: .status.ceph.fsid
|
||||
name: FSID
|
||||
type: string
|
||||
name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
|
||||
@@ -42,6 +42,7 @@ import (
|
||||
// +kubebuilder:printcolumn:name="Message",type=string,JSONPath=`.status.message`,description="Message"
|
||||
// +kubebuilder:printcolumn:name="Health",type=string,JSONPath=`.status.ceph.health`,description="Ceph Health"
|
||||
// +kubebuilder:printcolumn:name="External",type=boolean,JSONPath=`.spec.external.enable`
|
||||
// +kubebuilder:printcolumn:name="FSID",type=string,JSONPath=`.status.ceph.fsid`,description="Ceph FSID"
|
||||
// +kubebuilder:subresource:status
|
||||
type CephCluster struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
|
||||
Reference in new issue
Block a user