Skip to content

Commit

Permalink
feat: Enable server-side-apply on direct applier
Browse files Browse the repository at this point in the history
This will fix the  "annotation too long" problem when the managed manifests are too large.
  • Loading branch information
yuwenma committed Jul 3, 2024
1 parent a248ed1 commit 955aa87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/patterns/declarative/pkg/applier/direct.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 955aa87

Please sign in to comment.