remove redundant cluster-name
This commit is contained in:
parent
7ee360ba4a
commit
eb640ebd97
|
|
@ -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),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue