Skip to content

Commit 09cacb3

Browse files
ReuDazegl
authored andcommitted
prepare api 0.34
1 parent 81371e9 commit 09cacb3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

score/internal/labelselector.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ func (l MapLabels) Get(key string) string {
1414
return l[key]
1515
}
1616

17+
func (l MapLabels) Lookup(label string) (value string, exists bool) {
18+
value, exists = l[label]
19+
return value, exists
20+
}
21+
1722
func LabelSelectorMatchesLabels(selectorLabels map[string]string, labels map[string]string) bool {
1823
labelSelector := &metav1.LabelSelector{
1924
MatchLabels: selectorLabels,

0 commit comments

Comments
 (0)