Skip to content

Commit

Permalink
fix: there must exist selectors on a service for it to match a pod
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik Arvidsson committed Aug 23, 2021
1 parent 0ed069f commit 97068c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Client/PodExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ internal static IEnumerable<Pod> WhereServiceIsHosted(
{
return pods.Where(
pod =>
service.Selectors.Any() &&
service.Selectors.All(
selector =>
pod.Labels.Any(
Expand Down

0 comments on commit 97068c2

Please sign in to comment.