From d2c410d72b0236cfec1371ef1fc1d3dfed911bb4 Mon Sep 17 00:00:00 2001 From: Rafia Sabih Date: Mon, 5 Oct 2020 12:10:02 +0200 Subject: [PATCH] Add labels --- pkg/cluster/util.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/cluster/util.go b/pkg/cluster/util.go index b9ce6dbe9..f00086e50 100644 --- a/pkg/cluster/util.go +++ b/pkg/cluster/util.go @@ -424,8 +424,10 @@ func (c *Cluster) connectionPoolerLabelsSelector(role PostgresRole) *metav1.Labe connectionPoolerLabels := labels.Set(map[string]string{}) extraLabels := labels.Set(map[string]string{ - "connection-pooler": c.connectionPoolerName(role), - "application": "db-connection-pooler", + "connection-pooler-name": c.connectionPoolerName(role), + "application": "db-connection-pooler", + "role": string(role), + "cluster-name": c.ClusterName, }) connectionPoolerLabels = labels.Merge(connectionPoolerLabels, c.labelsSet(false))