mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
Switch to versioned ListOptions in client.
This commit is contained in:
@@ -31,6 +31,14 @@ var Codec = runtime.CodecFor(Scheme, "")
|
||||
|
||||
func init() {
|
||||
Scheme.AddDefaultingFuncs(
|
||||
func(obj *ListOptions) {
|
||||
if obj.LabelSelector == nil {
|
||||
obj.LabelSelector = labels.Everything()
|
||||
}
|
||||
if obj.FieldSelector == nil {
|
||||
obj.FieldSelector = fields.Everything()
|
||||
}
|
||||
},
|
||||
func(obj *unversioned.ListOptions) {
|
||||
if obj.LabelSelector.Selector == nil {
|
||||
obj.LabelSelector = unversioned.LabelSelector{labels.Everything()}
|
||||
|
||||
Reference in New Issue
Block a user