Merge pull request #1733 from XiShanYongYe-Chang/skip-reflect-status
Skip reflect work status when resource has empty status
This commit is contained in:
commit
b2ebfb6036
|
@ -283,6 +283,10 @@ func (c *WorkStatusController) reflectStatus(work *workv1alpha1.Work, clusterObj
|
|||
clusterObj.GetKind(), clusterObj.GetNamespace(), clusterObj.GetName(), err)
|
||||
}
|
||||
|
||||
if statusRaw == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
identifier, err := c.buildStatusIdentifier(work, clusterObj)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue