Always empty account's namespace after parsing

This commit is contained in:
Sergey Dudoladov 2018-04-25 13:57:24 +02:00
parent d99b553ec1
commit 4255e702bc
1 changed files with 1 additions and 1 deletions

View File

@ -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