mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 20:11:54 +02:00
Name service account consistenly
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user