Feature/configure replication role (#97)

Configure superuser and replication usernames
This commit is contained in:
Oleksii Kliukin 2017-09-07 10:12:34 +02:00 committed by GitHub
parent 4db5bd13d1
commit a0a9e8f849
1 changed files with 8 additions and 0 deletions

View File

@ -260,6 +260,10 @@ func (c *Cluster) generatePodTemplate(resourceRequirements *v1.ResourceRequireme
},
},
},
{
Name: "PGUSER_SUPERUSER",
Value: c.OpConfig.SuperUsername,
},
{
Name: "PGPASSWORD_SUPERUSER",
ValueFrom: &v1.EnvVarSource{
@ -271,6 +275,10 @@ func (c *Cluster) generatePodTemplate(resourceRequirements *v1.ResourceRequireme
},
},
},
{
Name: "PGUSER_STANDBY",
Value: c.OpConfig.ReplicationUsername,
},
{
Name: "PGPASSWORD_STANDBY",
ValueFrom: &v1.EnvVarSource{