Skip to content

Commit

Permalink
Fix Config Daemon node selector
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyd1988 committed Dec 5, 2023
1 parent f405450 commit 94a376b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/apply/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ func ApplyObject(ctx context.Context, client k8sclient.Client, obj *uns.Unstruct
if err := MergeObjectForUpdate(existing, obj); err != nil {
return errors.Wrapf(err, "could not merge object %s with existing", objDesc)
}
if !equality.Semantic.DeepDerivative(obj, existing) {
if !equality.Semantic.DeepEqual(existing, obj) {
if err := client.Update(ctx, obj); err != nil {
return errors.Wrapf(err, "could not update object %s", objDesc)
} else {
log.Printf("update was successful")
log.Printf("update was successful %s", objDesc)
}
}

Expand Down

0 comments on commit 94a376b

Please sign in to comment.