We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81371e9 commit 09cacb3Copy full SHA for 09cacb3
score/internal/labelselector.go
@@ -14,6 +14,11 @@ func (l MapLabels) Get(key string) string {
14
return l[key]
15
}
16
17
+func (l MapLabels) Lookup(label string) (value string, exists bool) {
18
+ value, exists = l[label]
19
+ return value, exists
20
+}
21
+
22
func LabelSelectorMatchesLabels(selectorLabels map[string]string, labels map[string]string) bool {
23
labelSelector := &metav1.LabelSelector{
24
MatchLabels: selectorLabels,
0 commit comments