diff --git a/deploy/charts/rook-ceph/templates/resources.yaml b/deploy/charts/rook-ceph/templates/resources.yaml index 47abde000..fd4050096 100644 --- a/deploy/charts/rook-ceph/templates/resources.yaml +++ b/deploy/charts/rook-ceph/templates/resources.yaml @@ -4119,6 +4119,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 745411e4c..234fa23bf 100644 --- a/deploy/examples/crds.yaml +++ b/deploy/examples/crds.yaml @@ -4118,6 +4118,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 aa26b0642..14e194536 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 }