From 4255e702bc876bdcde5d1c36d5f98378153a4efb Mon Sep 17 00:00:00 2001 From: Sergey Dudoladov Date: Wed, 25 Apr 2018 13:57:24 +0200 Subject: [PATCH] Always empty account's namespace after parsing --- pkg/controller/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/controller.go b/pkg/controller/controller.go index 144c0fb4c..7b309a547 100644 --- a/pkg/controller/controller.go +++ b/pkg/controller/controller.go @@ -145,8 +145,8 @@ func (c *Controller) initPodServiceAccount() { if c.PodServiceAccount.Name != c.opConfig.PodServiceAccountName { c.logger.Warnf("in the operator config map, the pod service account name %v does not match the name %v given in the account definition; using the former for consistency", c.opConfig.PodServiceAccountName, c.PodServiceAccount.Name) c.PodServiceAccount.Name = c.opConfig.PodServiceAccountName - c.PodServiceAccount.Namespace = "" } + c.PodServiceAccount.Namespace = "" } // actual service accounts are deployed at the time of Postgres/Spilo cluster creation