File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
1212 log "github.com/sirupsen/logrus"
1313 yaml3 "gopkg.in/yaml.v3"
1414 corev1 "k8s.io/api/core/v1"
15- "k8s.io/apimachinery/pkg/fields "
15+ "k8s.io/apimachinery/pkg/labels "
1616 "sigs.k8s.io/yaml"
1717)
1818
@@ -34,15 +34,15 @@ type Config struct {
3434}
3535
3636// Returns list of destinations for the specified trigger
37- func (cfg Config ) GetGlobalDestinations (labels map [string ]string ) services.Destinations {
37+ func (cfg Config ) GetGlobalDestinations (resourceLabels map [string ]string ) services.Destinations {
3838 dests := services.Destinations {}
3939 for _ , s := range cfg .Subscriptions {
4040 triggers := s .Triggers
4141 if len (triggers ) == 0 {
4242 triggers = cfg .DefaultTriggers
4343 }
4444 for _ , trigger := range triggers {
45- if s .MatchesTrigger (trigger ) && s .Selector .Matches (fields .Set (labels )) {
45+ if s .MatchesTrigger (trigger ) && s .Selector .Matches (labels .Set (resourceLabels )) {
4646 for _ , recipient := range s .Recipients {
4747 parts := strings .Split (recipient , ":" )
4848 dest := services.Destination {Service : parts [0 ]}
You can’t perform that action at this time.
0 commit comments