From 5b93d210ffd57983c3498771dd14c2e271d55497 Mon Sep 17 00:00:00 2001 From: Rafia Sabih Date: Mon, 16 Nov 2020 17:04:31 +0100 Subject: [PATCH] remove redundant namespace --- 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 56cd70b13..e9f1b13e4 100644 --- a/pkg/cluster/connection_pooler.go +++ b/pkg/cluster/connection_pooler.go @@ -89,7 +89,6 @@ func (c *Cluster) connectionPoolerLabels(role PostgresRole, moreLabels bool) *me "application": "db-connection-pooler", "spilo-role": string(role), "cluster-name": c.Name, - "Namespace": c.Namespace, }) } else { extraLabels = labels.Set(map[string]string{ @@ -293,7 +292,7 @@ func (c *Cluster) generateConnectionPoolerPodTemplate(role PostgresRole) ( podTemplate := &v1.PodTemplateSpec{ ObjectMeta: metav1.ObjectMeta{ - Labels: c.connectionPoolerLabels(role, false).MatchLabels, + Labels: c.connectionPoolerLabels(role, true).MatchLabels, Namespace: c.Namespace, Annotations: c.generatePodAnnotations(spec), },