Skip to content

Commit

Permalink
Fixing expected service selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
angelokurtis committed Oct 15, 2022
1 parent a166fe5 commit 6e29f4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/collector/reconcile/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ func service(name string, ports []v1.ServicePort) v1.Service {
labels := collector.Labels(params().Instance, []string{})
labels["app.kubernetes.io/name"] = name

selector := labels
selector := collector.SelectorLabels(params().Instance)
selector["app.kubernetes.io/name"] = name
return v1.Service{
ObjectMeta: metav1.ObjectMeta{
Name: name,
Expand Down

0 comments on commit 6e29f4f

Please sign in to comment.