core: sync ceph fsid on cephcluster status

FSID will be updated with cephcluster CR status
when monitoring check get start

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 2e89ff0fd9)
This commit is contained in:
parth-gr authored and mergify-bot committed 2022-03-09 17:37:38 +00:00
1 parent 2aa3978df5
commit d07feea223
4 files changed
+8

No files matched your search

@@ -4119,6 +4119,8 @@ spec:
- severity
type: object
type: object
fsid:
type: string
health:
type: string
lastChanged:
+2
View File
@@ -4118,6 +4118,8 @@ spec:
- severity
type: object
type: object
fsid:
type: string
health:
type: string
lastChanged:
+1
View File
@@ -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
+3
View File
@@ -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
}