mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-08-23 22:26:49 +00:00
Apply ownerref eventhough other field is ignored (#847)
Signed-off-by: Jian Qiu <jqiu@redhat.com>
This commit is contained in:
@@ -103,7 +103,9 @@ func (c *ServerSideApply) Apply(
|
||||
// skip the apply operation when the hash of the existing resource matches the required hash
|
||||
existingHash := existing.GetAnnotations()[workapiv1.ManifestConfigSpecHashAnnotationKey]
|
||||
if requiredHash == existingHash {
|
||||
return existing, nil
|
||||
// still needs to apply ownerref since it might be changed due to deleteoption update.
|
||||
err := helper.ApplyOwnerReferences(ctx, c.client, gvr, existing, owner)
|
||||
return existing, err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user