File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -575,4 +575,12 @@ func (o *DeleteAllOfOptions) ApplyOptions(opts []DeleteAllOfOption) *DeleteAllOf
575
575
return o
576
576
}
577
577
578
+ var _ DeleteAllOfOption = & DeleteAllOfOptions {}
579
+
580
+ // ApplyToDeleteAllOf implements DeleteAllOfOption
581
+ func (o * DeleteAllOfOptions ) ApplyToDeleteAllOf (do * DeleteAllOfOptions ) {
582
+ o .ApplyToList (& do .ListOptions )
583
+ o .ApplyToDelete (& do .DeleteOptions )
584
+ }
585
+
578
586
// }}}
Original file line number Diff line number Diff line change @@ -188,3 +188,18 @@ var _ = Describe("PatchOptions", func() {
188
188
Expect (newPatchOpts ).To (Equal (o ))
189
189
})
190
190
})
191
+
192
+ var _ = Describe ("DeleteAllOfOptions" , func () {
193
+ It ("Should set ListOptions" , func () {
194
+ o := & client.DeleteAllOfOptions {ListOptions : client.ListOptions {Raw : & metav1.ListOptions {}}}
195
+ newDeleteAllOfOpts := & client.DeleteAllOfOptions {}
196
+ o .ApplyToDeleteAllOf (newDeleteAllOfOpts )
197
+ Expect (newDeleteAllOfOpts ).To (Equal (o ))
198
+ })
199
+ It ("Should set DeleleteOptions" , func () {
200
+ o := & client.DeleteAllOfOptions {DeleteOptions : client.DeleteOptions {GracePeriodSeconds : utilpointer .Int64Ptr (44 )}}
201
+ newDeleteAllOfOpts := & client.DeleteAllOfOptions {}
202
+ o .ApplyToDeleteAllOf (newDeleteAllOfOpts )
203
+ Expect (newDeleteAllOfOpts ).To (Equal (o ))
204
+ })
205
+ })
You can’t perform that action at this time.
0 commit comments