We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bde0bf commit 9aeb638Copy full SHA for 9aeb638
common/pkg/k8s/client/apply.go
@@ -25,11 +25,13 @@ func ServerSideApply(
25
obj ctrlclient.Object,
26
opts ...ctrlclient.PatchOption,
27
) error {
28
+ options := []ctrlclient.PatchOption{ctrlclient.FieldOwner(FieldOwner)}
29
+ options = append(options, opts...)
30
err := c.Patch(
31
ctx,
32
obj,
33
ctrlclient.Apply,
- ctrlclient.FieldOwner(FieldOwner),
34
+ options...,
35
)
36
if err != nil {
37
return fmt.Errorf("server-side apply failed: %w", err)
0 commit comments