From 955aa87029d0fe0708349971e5631b790492df94 Mon Sep 17 00:00:00 2001 From: Yuwen Ma Date: Tue, 2 Jul 2024 19:07:19 -0700 Subject: [PATCH] feat: Enable server-side-apply on direct applier This will fix the "annotation too long" problem when the managed manifests are too large. --- pkg/patterns/declarative/pkg/applier/direct.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/patterns/declarative/pkg/applier/direct.go b/pkg/patterns/declarative/pkg/applier/direct.go index 95d58c87..dfe46a67 100644 --- a/pkg/patterns/declarative/pkg/applier/direct.go +++ b/pkg/patterns/declarative/pkg/applier/direct.go @@ -170,6 +170,7 @@ func (d *DirectApplier) Apply(ctx context.Context, opt ApplierOptions) error { applyOpts.PruneResources = append(applyOpts.PruneResources, r...) } + applyOpts.ServerSideApply = true applyOpts.ForceConflicts = opt.Force applyOpts.Namespace = opt.Namespace applyOpts.SetObjects(infos)