We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f831695 + 58640d1 commit 3d915dfCopy full SHA for 3d915df
pkg/client/options.go
@@ -606,6 +606,11 @@ func (n InNamespace) ApplyToDeleteAllOf(opts *DeleteAllOfOptions) {
606
n.ApplyToList(&opts.ListOptions)
607
}
608
609
+// AsSelector returns a selector that matches objects in the given namespace.
610
+func (n InNamespace) AsSelector() fields.Selector {
611
+ return fields.SelectorFromSet(fields.Set{"metadata.namespace": string(n)})
612
+}
613
+
614
// Limit specifies the maximum number of results to return from the server.
615
// Limit does not implement DeleteAllOfOption interface because the server
616
// does not support setting it for deletecollection operations.
0 commit comments