remove redundant namespace

This commit is contained in:
Rafia Sabih 2020-11-16 17:04:31 +01:00
parent 85c1314cff
commit 5b93d210ff
1 changed files with 1 additions and 2 deletions

View File

@ -89,7 +89,6 @@ func (c *Cluster) connectionPoolerLabels(role PostgresRole, moreLabels bool) *me
"application": "db-connection-pooler", "application": "db-connection-pooler",
"spilo-role": string(role), "spilo-role": string(role),
"cluster-name": c.Name, "cluster-name": c.Name,
"Namespace": c.Namespace,
}) })
} else { } else {
extraLabels = labels.Set(map[string]string{ extraLabels = labels.Set(map[string]string{
@ -293,7 +292,7 @@ func (c *Cluster) generateConnectionPoolerPodTemplate(role PostgresRole) (
podTemplate := &v1.PodTemplateSpec{ podTemplate := &v1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{ ObjectMeta: metav1.ObjectMeta{
Labels: c.connectionPoolerLabels(role, false).MatchLabels, Labels: c.connectionPoolerLabels(role, true).MatchLabels,
Namespace: c.Namespace, Namespace: c.Namespace,
Annotations: c.generatePodAnnotations(spec), Annotations: c.generatePodAnnotations(spec),
}, },