mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 06:02:18 +00:00
Separate labels and selector in services for clarity
This commit is contained in:
@@ -45,3 +45,8 @@ func (ls Set) String() string {
|
||||
func (ls Set) Get(label string) string {
|
||||
return ls[label]
|
||||
}
|
||||
|
||||
// Convenience function: convert these labels to a query.
|
||||
func (ls Set) AsQuery() Query {
|
||||
return QueryFromSet(ls)
|
||||
}
|
||||
|
Reference in New Issue
Block a user