forked from rook/rook
Merge pull request #11864 from thenamehasbeentake/cephcluster-fsid
core: add fsid to the additionalPrinterColumns on cephcluster custom resource
This commit is contained in:
@@ -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