From 85c1314cfffaead35c42e62d3a39def254754355 Mon Sep 17 00:00:00 2001 From: Rafia Sabih Date: Mon, 16 Nov 2020 16:34:46 +0100 Subject: [PATCH] fix manifest --- manifests/minimal-fake-pooler-deployment.yaml | 2 +- pkg/cluster/connection_pooler.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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), },