From a5a65e93f4704d2e4479d73f7a8ab4c676c9723d Mon Sep 17 00:00:00 2001 From: Sergey Dudoladov Date: Thu, 19 Apr 2018 16:15:52 +0200 Subject: [PATCH] Name service account consistenly --- pkg/controller/controller.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/controller/controller.go b/pkg/controller/controller.go index 4a12948de..b50dc43ad 100644 --- a/pkg/controller/controller.go +++ b/pkg/controller/controller.go @@ -129,6 +129,8 @@ func (c *Controller) initPodServiceAccount() { panic(fmt.Errorf("pod service account definiton in the operator config map defines another type of resource: %v", groupVersionKind.Kind)) default: c.opConfig.PodServiceAccount = obj.(*v1.ServiceAccount) + // ensure consistent naming of the account + c.opConfig.PodServiceAccount.Name = c.opConfig.PodServiceAccountName } // actual service accounts are deployed at the time of Postgres/Spilo cluster creation