Skip to content

Commit 7b761bb

Browse files
committed
Fixups
1 parent e2e2d4a commit 7b761bb

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

pkg/client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ func (po *SubResourcePatchOptions) ApplyToSubResourcePatch(o *SubResourcePatchOp
545545
}
546546

547547
// SubResourceApplyOptions are the options for a subresource
548-
// apply rquest.
548+
// apply request.
549549
type SubResourceApplyOptions struct {
550550
ApplyOptions
551551
SubResourceBody runtime.ApplyConfiguration

pkg/client/fieldvalidation_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,9 @@ func TestWithStrictFieldValidation(t *testing.T) {
122122
_ = wrappedClient.SubResource("some-subresource").Create(ctx, dummyObj, dummyObj)
123123
_ = wrappedClient.SubResource("some-subresource").Update(ctx, dummyObj)
124124
_ = wrappedClient.SubResource("some-subresource").Patch(ctx, dummyObj, nil)
125+
_ = wrappedClient.SubResource("some-subresource").Apply(ctx, corev1applyconfigurations.Namespace(""), nil)
125126

126-
if expectedCalls := 10; calls != expectedCalls {
127+
if expectedCalls := 11; calls != expectedCalls {
127128
t.Fatalf("wrong number of calls to assertions: expected=%d; got=%d", expectedCalls, calls)
128129
}
129130
}

pkg/client/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ type SubResourcePatchOption interface {
9797
ApplyToSubResourcePatch(*SubResourcePatchOptions)
9898
}
9999

100-
// SubResourceApplyOption configures a subresoruce apply request.
100+
// SubResourceApplyOption configures a subresource apply request.
101101
type SubResourceApplyOption interface {
102102
// ApplyToSubResourceApply applies the configuration on the given patch options.
103103
ApplyToSubResourceApply(*SubResourceApplyOptions)

pkg/client/patch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
var (
2929
// Apply uses server-side apply to patch the given object.
3030
//
31-
// Deprecated: Use client.Client.Apply() instead.
31+
// Deprecated: Use client.Client.Apply() and client.Client.SubResource("subrsource").Apply() instead.
3232
Apply Patch = applyPatch{}
3333

3434
// Merge uses the raw object as a merge patch, without modifications.

0 commit comments

Comments
 (0)