mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Change the string serialization of the Nothing selector
The previous option was not serializable, and was used in questionable scenarios to represent what we also use Everything() for. The individual context needs to make the decision about everything vs nothing (and nothing has no real concept in our API today) so this seems safe.
This commit is contained in:
parent
c5059bd772
commit
bf20045736
@ -62,7 +62,7 @@ type nothingSelector struct{}
|
||||
|
||||
func (n nothingSelector) Matches(_ Labels) bool { return false }
|
||||
func (n nothingSelector) Empty() bool { return false }
|
||||
func (n nothingSelector) String() string { return "<null>" }
|
||||
func (n nothingSelector) String() string { return "" }
|
||||
func (n nothingSelector) Add(_ ...Requirement) Selector { return n }
|
||||
func (n nothingSelector) Requirements() (Requirements, bool) { return nil, false }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user