From 94a376bcfa24b1fb99134c105b7e9b3d534c6a7a Mon Sep 17 00:00:00 2001 From: wangyd1988 Date: Tue, 5 Dec 2023 16:19:56 +0800 Subject: [PATCH] Fix Config Daemon node selector --- pkg/apply/apply.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/apply/apply.go b/pkg/apply/apply.go index afebdf405..f5560e993 100644 --- a/pkg/apply/apply.go +++ b/pkg/apply/apply.go @@ -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) } }