refactor spilo env var generation (#1848)

* refactor spilo env generation
* enhance docs on env vars
* add unit test for appendEnvVar
This commit is contained in:
Felix Kunde
2022-04-14 11:47:33 +02:00
committed by GitHub
parent 483bf624ee
commit eecd13169c
7 changed files with 1231 additions and 910 deletions
+1 -1
View File
@@ -1318,7 +1318,7 @@ func (c *Cluster) initAdditionalOwnerRoles() {
}
}
if len(memberOf) > 1 {
if len(memberOf) > 0 {
namespace := c.Namespace
additionalOwnerPgUser := spec.PgUser{
Origin: spec.RoleOriginSpilo,