remove redundant cluster-name

This commit is contained in:
Rafia Sabih 2020-11-19 09:10:01 +01:00
parent 7ee360ba4a
commit eb640ebd97
1 changed files with 1 additions and 2 deletions

View File

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