Skip to content

Commit

Permalink
fix: use new app label for zeebe gateway saas
Browse files Browse the repository at this point in the history
  • Loading branch information
megglos committed Oct 18, 2023
1 parent ceea0ec commit 15363e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go-chaos/internal/labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func getSaasGatewayLabels() string {
// For backwards compatability the brokers kept the gateway labels, for a statefulset the labels are not modifiable
// To still be able to distinguish the standalone gateway with the broker, the gateway got a new label.
labelSelector := metav1.LabelSelector{
MatchLabels: map[string]string{"app.kubernetes.io/app": "zeebe", "app.kubernetes.io/component": "standalone-gateway"},
MatchLabels: map[string]string{"app.kubernetes.io/app": "zeebe-gateway", "app.kubernetes.io/component": "standalone-gateway"},
}
return labels.Set(labelSelector.MatchLabels).String()
}
Expand Down
2 changes: 1 addition & 1 deletion go-chaos/internal/labels_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func Test_shouldGetSelfManagedGatewayLabels(t *testing.T) {

func Test_shouldGetSaasGatewayLabels(t *testing.T) {
// given
var expected = "app.kubernetes.io/app=zeebe,app.kubernetes.io/component=standalone-gateway"
var expected = "app.kubernetes.io/app=zeebe-gateway,app.kubernetes.io/component=standalone-gateway"

// when
actual := getSaasGatewayLabels()
Expand Down

0 comments on commit 15363e1

Please sign in to comment.