Skip to content

Commit 4be8632

Browse files
committed
Client updates
1 parent d30bbe7 commit 4be8632

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: pkg/lib/controller-runtime/client/fake_ssa.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ type fakeStatusWriter struct {
3535
k8scontrollerclient.StatusWriter
3636
}
3737

38-
func (c fakeStatusWriter) Patch(ctx context.Context, obj k8scontrollerclient.Object, patch k8scontrollerclient.Patch, opts ...k8scontrollerclient.PatchOption) error {
39-
patch, opts = convertApplyToMergePatch(patch, opts...)
38+
func (c fakeStatusWriter) Patch(ctx context.Context, obj k8scontrollerclient.Object, patch k8scontrollerclient.Patch, opts ...k8scontrollerclient.SubResourcePatchOption) error {
4039
return c.StatusWriter.Patch(ctx, obj, patch, opts...)
4140
}
4241

Diff for: pkg/lib/controller-runtime/client/ssa.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func (c *ServerSideApplier) Apply(ctx context.Context, obj Object, changeFunc in
182182
return err
183183
}
184184

185-
if err := c.client.Status().Patch(ctx, cp, k8scontrollerclient.Apply, k8scontrollerclient.ForceOwnership, c.Owner); err != nil {
185+
if err := c.client.Status().Patch(ctx, cp, k8scontrollerclient.Apply, c.Owner); err != nil {
186186
fmt.Printf("second patch error: %s\n", err)
187187
return err
188188
}

0 commit comments

Comments
 (0)