From 9f51d7377bfcba35b75dceb9e95a24f93da2755e Mon Sep 17 00:00:00 2001 From: Dmitrii Dolgov <9erthalion6@gmail.com> Date: Tue, 24 Mar 2020 16:30:01 +0100 Subject: [PATCH] Use connection pool labels --- pkg/cluster/k8sres.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cluster/k8sres.go b/pkg/cluster/k8sres.go index edba7a057..800429930 100644 --- a/pkg/cluster/k8sres.go +++ b/pkg/cluster/k8sres.go @@ -2068,7 +2068,7 @@ func (c *Cluster) generateConnPoolDeployment(spec *acidv1.PostgresSpec) ( ObjectMeta: metav1.ObjectMeta{ Name: c.connPoolName(), Namespace: c.Namespace, - Labels: c.labelsSet(true), + Labels: c.connPoolLabelsSelector().MatchLabels, Annotations: map[string]string{}, // make StatefulSet object its owner to represent the dependency. // By itself StatefulSet is being deleted with "Orphaned" @@ -2118,7 +2118,7 @@ func (c *Cluster) generateConnPoolService(spec *acidv1.PostgresSpec) *v1.Service ObjectMeta: metav1.ObjectMeta{ Name: c.connPoolName(), Namespace: c.Namespace, - Labels: c.labelsSet(true), + Labels: c.connPoolLabelsSelector().MatchLabels, Annotations: map[string]string{}, // make StatefulSet object its owner to represent the dependency. // By itself StatefulSet is being deleted with "Orphaned"