diff --git a/manifests/minimal-fake-pooler-deployment.yaml b/manifests/minimal-fake-pooler-deployment.yaml index fdbdc4c55..f97b7fdce 100644 --- a/manifests/minimal-fake-pooler-deployment.yaml +++ b/manifests/minimal-fake-pooler-deployment.yaml @@ -6,13 +6,13 @@ metadata: labels: application: db-connection-pooler connection-pooler: acid-minimal-cluster-pooler - cluster-name: acid-minimal-cluster spec: replicas: 1 selector: matchLabels: application: db-connection-pooler connection-pooler: acid-minimal-cluster-pooler + version: acid-minimal-cluster template: metadata: labels: diff --git a/pkg/cluster/connection_pooler.go b/pkg/cluster/connection_pooler.go index 93d3dd2f0..56cd70b13 100644 --- a/pkg/cluster/connection_pooler.go +++ b/pkg/cluster/connection_pooler.go @@ -293,7 +293,7 @@ func (c *Cluster) generateConnectionPoolerPodTemplate(role PostgresRole) ( podTemplate := &v1.PodTemplateSpec{ ObjectMeta: metav1.ObjectMeta{ - Labels: c.connectionPoolerLabels(role, true).MatchLabels, + Labels: c.connectionPoolerLabels(role, false).MatchLabels, Namespace: c.Namespace, Annotations: c.generatePodAnnotations(spec), },