diff --git a/exp/addons/internal/controllers/clusterresourceset_scope.go b/exp/addons/internal/controllers/clusterresourceset_scope.go index 3cf15d1516c8..6488311c93de 100644 --- a/exp/addons/internal/controllers/clusterresourceset_scope.go +++ b/exp/addons/internal/controllers/clusterresourceset_scope.go @@ -142,6 +142,8 @@ func (r *reconcileStrategyScope) apply(ctx context.Context, c client.Client, obj } patch := client.MergeFrom(currentObj.DeepCopy()) + // metadata.ResourceVersion needs to be set to avoid webhook errors in applying + obj.SetResourceVersion(currentObj.GetResourceVersion()) if err = c.Patch(ctx, obj, patch); err != nil { return errors.Wrapf( err,