skip reflect work status when resource has empty status
Signed-off-by: changzhen <changzhen5@huawei.com>
This commit is contained in:
parent
810048fe89
commit
d0dadb282a
|
@ -283,6 +283,10 @@ func (c *WorkStatusController) reflectStatus(work *workv1alpha1.Work, clusterObj
|
||||||
clusterObj.GetKind(), clusterObj.GetNamespace(), clusterObj.GetName(), err)
|
clusterObj.GetKind(), clusterObj.GetNamespace(), clusterObj.GetName(), err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if statusRaw == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
identifier, err := c.buildStatusIdentifier(work, clusterObj)
|
identifier, err := c.buildStatusIdentifier(work, clusterObj)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue