diff --git a/deploy/charts/rook-ceph/templates/resources.yaml b/deploy/charts/rook-ceph/templates/resources.yaml index 14a8e084c..085660012 100644 --- a/deploy/charts/rook-ceph/templates/resources.yaml +++ b/deploy/charts/rook-ceph/templates/resources.yaml @@ -4122,6 +4122,8 @@ spec: - severity type: object type: object + fsid: + type: string health: type: string lastChanged: diff --git a/deploy/examples/crds.yaml b/deploy/examples/crds.yaml index 5ff6dbfd0..61545f381 100644 --- a/deploy/examples/crds.yaml +++ b/deploy/examples/crds.yaml @@ -4121,6 +4121,8 @@ spec: - severity type: object type: object + fsid: + type: string health: type: string lastChanged: diff --git a/pkg/apis/ceph.rook.io/v1/types.go b/pkg/apis/ceph.rook.io/v1/types.go index 252dbfcc9..683c501a7 100755 --- a/pkg/apis/ceph.rook.io/v1/types.go +++ b/pkg/apis/ceph.rook.io/v1/types.go @@ -355,6 +355,7 @@ type CephStatus struct { Capacity Capacity `json:"capacity,omitempty"` // +optional Versions *CephDaemonsVersions `json:"versions,omitempty"` + FSID string `json:"fsid,omitempty"` } // Capacity is the capacity information of a Ceph Cluster diff --git a/pkg/operator/ceph/cluster/cephstatus.go b/pkg/operator/ceph/cluster/cephstatus.go index 40a8132e4..6cb190121 100644 --- a/pkg/operator/ceph/cluster/cephstatus.go +++ b/pkg/operator/ceph/cluster/cephstatus.go @@ -233,6 +233,9 @@ func toCustomResourceStatus(currentStatus cephv1.ClusterStatus, newStatus *cephc s.Capacity = currentStatus.CephStatus.Capacity } } + // update fsid on cephcluster Status + s.FSID = newStatus.FSID + return s }