Skip to content

Commit

Permalink
Merge pull request openstack-k8s-operators#251 from openshift-cherryp…
Browse files Browse the repository at this point in the history
…ick-robot/cherry-pick-250-to-18.0.0-proposed

[18.0.0-proposed] Fix labelSelector for podAntiAffinity rule
  • Loading branch information
openshift-merge-bot[bot] authored Jul 30, 2024
2 parents af03274 + e343aad commit ed72c80
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/mariadb/utils.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package mariadb

import (
common "github.com/openstack-k8s-operators/lib-common/modules/common"
labels "github.com/openstack-k8s-operators/lib-common/modules/common/labels"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down Expand Up @@ -31,9 +32,10 @@ func LabelSelectors(database metav1.Object, dbType string) map[string]string {
func StatefulSetLabels(database metav1.Object) map[string]string {
name := database.GetName()
return labels.GetLabels(database, "galera", map[string]string{
"owner": "mariadb-operator",
"app": "galera",
"cr": "galera-" + name,
"owner": "mariadb-operator",
"app": "galera",
"cr": "galera-" + name,
common.AppSelector: StatefulSetName(name),
})
}

Expand Down

0 comments on commit ed72c80

Please sign in to comment.