diff --git a/services/rollout-service/pkg/service/broadcast.go b/services/rollout-service/pkg/service/broadcast.go index 461f8fcec..e39667304 100644 --- a/services/rollout-service/pkg/service/broadcast.go +++ b/services/rollout-service/pkg/service/broadcast.go @@ -19,10 +19,11 @@ package service import ( "context" "errors" - "gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer" "sync" "time" + "gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer" + api "github.com/freiheit-com/kuberpult/pkg/api/v1" "github.com/freiheit-com/kuberpult/pkg/conversion" "github.com/freiheit-com/kuberpult/services/rollout-service/pkg/versions" @@ -57,7 +58,7 @@ func (a *appState) applyArgoEvent(ev *ArgoEvent) *BroadcastEvent { } func (a *appState) applyKuberpultEvent(ev *versions.KuberpultEvent) *BroadcastEvent { - if !a.argocdVersion.Equal(ev.Version) || a.isProduction == nil || *a.isProduction != ev.IsProduction { + if !a.kuberpultVersion.Equal(ev.Version) || a.isProduction == nil || *a.isProduction != ev.IsProduction { a.kuberpultVersion = ev.Version a.environmentGroup = ev.EnvironmentGroup a.team = ev.Team