Skip to content

Commit 955aa87

Browse files
authored
feat: Enable server-side-apply on direct applier
This will fix the "annotation too long" problem when the managed manifests are too large.
1 parent a248ed1 commit 955aa87

File tree

1 file changed

+1
-0
lines changed
  • pkg/patterns/declarative/pkg/applier

1 file changed

+1
-0
lines changed

pkg/patterns/declarative/pkg/applier/direct.go

+1
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ func (d *DirectApplier) Apply(ctx context.Context, opt ApplierOptions) error {
170170
applyOpts.PruneResources = append(applyOpts.PruneResources, r...)
171171
}
172172

173+
applyOpts.ServerSideApply = true
173174
applyOpts.ForceConflicts = opt.Force
174175
applyOpts.Namespace = opt.Namespace
175176
applyOpts.SetObjects(infos)

0 commit comments

Comments
 (0)