forked from rook/rook
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>
This commit is contained in:
@@ -4122,6 +4122,8 @@ spec:
|
||||
- severity
|
||||
type: object
|
||||
type: object
|
||||
fsid:
|
||||
type: string
|
||||
health:
|
||||
type: string
|
||||
lastChanged:
|
||||
|
||||
@@ -4121,6 +4121,8 @@ spec:
|
||||
- severity
|
||||
type: object
|
||||
type: object
|
||||
fsid:
|
||||
type: string
|
||||
health:
|
||||
type: string
|
||||
lastChanged:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user