From eb640ebd97b8b3fee062599b5a5cc6337231d9f6 Mon Sep 17 00:00:00 2001 From: Rafia Sabih Date: Thu, 19 Nov 2020 09:10:01 +0100 Subject: [PATCH] remove redundant cluster-name --- pkg/cluster/connection_pooler.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/cluster/connection_pooler.go b/pkg/cluster/connection_pooler.go index e9f1b13e4..3f4972342 100644 --- a/pkg/cluster/connection_pooler.go +++ b/pkg/cluster/connection_pooler.go @@ -88,7 +88,6 @@ func (c *Cluster) connectionPoolerLabels(role PostgresRole, moreLabels bool) *me "connection-pooler": c.connectionPoolerName(role), "application": "db-connection-pooler", "spilo-role": string(role), - "cluster-name": c.Name, }) } else { extraLabels = labels.Set(map[string]string{ @@ -292,7 +291,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), },