Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Preserve user-managed fields when applying resources #556

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions common/pkg/k8s/client/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

// ServerSideApply will apply (i.e. create or update) objects via server-side apply. This will overwrite any changes
// that have been manually applied.
// that have been manually applied to fields managed by CAREN.
func ServerSideApply(
ctx context.Context,
c ctrlclient.Client,
Expand All @@ -22,7 +22,6 @@ func ServerSideApply(
ctx,
objs[i],
ctrlclient.Apply,
ctrlclient.ForceOwnership,
dlipovetsky marked this conversation as resolved.
Show resolved Hide resolved
ctrlclient.FieldOwner("d2iq-cluster-api-runtime-extensions-nutanix"),
)
if err != nil {
Expand Down
Loading