File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -545,7 +545,7 @@ func (po *SubResourcePatchOptions) ApplyToSubResourcePatch(o *SubResourcePatchOp
545
545
}
546
546
547
547
// SubResourceApplyOptions are the options for a subresource
548
- // apply rquest .
548
+ // apply request .
549
549
type SubResourceApplyOptions struct {
550
550
ApplyOptions
551
551
SubResourceBody runtime.ApplyConfiguration
Original file line number Diff line number Diff line change @@ -122,8 +122,9 @@ func TestWithStrictFieldValidation(t *testing.T) {
122
122
_ = wrappedClient .SubResource ("some-subresource" ).Create (ctx , dummyObj , dummyObj )
123
123
_ = wrappedClient .SubResource ("some-subresource" ).Update (ctx , dummyObj )
124
124
_ = wrappedClient .SubResource ("some-subresource" ).Patch (ctx , dummyObj , nil )
125
+ _ = wrappedClient .SubResource ("some-subresource" ).Apply (ctx , corev1applyconfigurations .Namespace ("" ), nil )
125
126
126
- if expectedCalls := 10 ; calls != expectedCalls {
127
+ if expectedCalls := 11 ; calls != expectedCalls {
127
128
t .Fatalf ("wrong number of calls to assertions: expected=%d; got=%d" , expectedCalls , calls )
128
129
}
129
130
}
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ type SubResourcePatchOption interface {
97
97
ApplyToSubResourcePatch (* SubResourcePatchOptions )
98
98
}
99
99
100
- // SubResourceApplyOption configures a subresoruce apply request.
100
+ // SubResourceApplyOption configures a subresource apply request.
101
101
type SubResourceApplyOption interface {
102
102
// ApplyToSubResourceApply applies the configuration on the given patch options.
103
103
ApplyToSubResourceApply (* SubResourceApplyOptions )
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import (
28
28
var (
29
29
// Apply uses server-side apply to patch the given object.
30
30
//
31
- // Deprecated: Use client.Client.Apply() instead.
31
+ // Deprecated: Use client.Client.Apply() and client.Client.SubResource("subrsource").Apply() instead.
32
32
Apply Patch = applyPatch {}
33
33
34
34
// Merge uses the raw object as a merge patch, without modifications.
You can’t perform that action at this time.
0 commit comments