File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -931,13 +931,15 @@ var ForceOwnership = forceOwnership{}
931931type forceOwnership struct {}
932932
933933func (forceOwnership ) ApplyToPatch (opts * PatchOptions ) {
934- definitelyTrue := true
935- opts .Force = & definitelyTrue
934+ opts .Force = ptr .To (true )
936935}
937936
938937func (forceOwnership ) ApplyToSubResourcePatch (opts * SubResourcePatchOptions ) {
939- definitelyTrue := true
940- opts .Force = & definitelyTrue
938+ opts .Force = ptr .To (true )
939+ }
940+
941+ func (forceOwnership ) ApplyToApply (opts * ApplyOptions ) {
942+ opts .Force = ptr .To (true )
941943}
942944
943945// }}}
Original file line number Diff line number Diff line change @@ -330,6 +330,12 @@ var _ = Describe("ForceOwnership", func() {
330330 t .ApplyToSubResourcePatch (o )
331331 Expect (* o .Force ).To (BeTrue ())
332332 })
333+ It ("Should apply to ApplyOptions" , func () {
334+ o := & client.ApplyOptions {}
335+ t := client .ForceOwnership
336+ t .ApplyToApply (o )
337+ Expect (* o .Force ).To (BeTrue ())
338+ })
333339})
334340
335341var _ = Describe ("HasLabels" , func () {
You can’t perform that action at this time.
0 commit comments