Merge pull request #11864 from thenamehasbeentake/cephcluster-fsid

core: add fsid to the additionalPrinterColumns on cephcluster custom resource
This commit is contained in:
Travis Nielsen
2023-03-10 07:54:41 -07:00
committed by GitHub
3 changed files with 9 additions and 0 deletions
@@ -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:
+4
View File
@@ -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:
+1
View File
@@ -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"`