mirror of https://github.com/k3s-io/k3s
commit
6500fdebb2
|
@ -146,6 +146,20 @@ func (r *Requirement) Matches(ls Labels) bool {
|
|||
}
|
||||
}
|
||||
|
||||
func (r *Requirement) Key() string {
|
||||
return r.key
|
||||
}
|
||||
func (r *Requirement) Operator() Operator {
|
||||
return r.operator
|
||||
}
|
||||
func (r *Requirement) Values() sets.String {
|
||||
ret := sets.String{}
|
||||
for k := range r.strValues {
|
||||
ret.Insert(k)
|
||||
}
|
||||
return ret
|
||||
}
|
||||
|
||||
// Return true if the LabelSelector doesn't restrict selection space
|
||||
func (lsel LabelSelector) Empty() bool {
|
||||
if lsel == nil {
|
||||
|
|
Loading…
Reference in New Issue