From 378d0283a69914ea08d9c67d8e098b7a520e4db5 Mon Sep 17 00:00:00 2001 From: michaelawyu Date: Thu, 19 Dec 2024 10:26:13 +0800 Subject: [PATCH] Minor fixes --- pkg/controllers/work/applier.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/controllers/work/applier.go b/pkg/controllers/work/applier.go index 9983a685b..54853edcc 100644 --- a/pkg/controllers/work/applier.go +++ b/pkg/controllers/work/applier.go @@ -74,7 +74,11 @@ func findConflictedWork(ctx context.Context, hubClient client.Client, namespace // Make sure these conditions are met before moving // * the defaulting webhook failure policy is configured as "fail". // * user cannot update/delete the webhook. + + // After the latest API change, Fleet needs to set default values before doing the + // full comparison. defaulter.SetDefaultsWork(work) + defaulter.SetDefaultsApplyStrategy(strategy) if !equality.Semantic.DeepEqual(strategy, work.Spec.ApplyStrategy) { return work, nil }