Skip to content

Commit

Permalink
fix: pod labels needs to match all service selectors to be a match
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik Arvidsson committed Aug 17, 2021
1 parent 75264bf commit 0ed069f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Client/PodExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ internal static IEnumerable<Pod> WhereServiceIsHosted(
{
return pods.Where(
pod =>
service.Selectors.Any(
pair =>
service.Selectors.All(
selector =>
pod.Labels.Any(
valuePair =>
valuePair.Key == pair.Key &&
valuePair.Value == pair.Value)));
label =>
label.Key == selector.Key &&
label.Value == selector.Value)));
}
}
}

0 comments on commit 0ed069f

Please sign in to comment.