mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
JSON marshaling/unmarshaling of label Selector
This commit is contained in:
@@ -729,5 +729,7 @@ func SelectorFromSet(ls Set) Selector {
|
||||
requirements = append(requirements, *r)
|
||||
}
|
||||
}
|
||||
// sort to have deterministic string representation
|
||||
sort.Sort(ByKey(requirements))
|
||||
return LabelSelector(requirements)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user