Set HUMAN_ROLE Spilo env var (#409)

* Set HUMAN_ROLE Spilo env var
This commit is contained in:
Sergey Dudoladov 2019-02-27 13:40:42 +01:00 committed by GitHub
parent 74cc9a44f8
commit 587d9091e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -558,6 +558,10 @@ func (c *Cluster) generateSpiloPodEnvVars(uid types.UID, spiloConfiguration stri
Name: "PAM_OAUTH2",
Value: c.OpConfig.PamConfiguration,
},
{
Name: "HUMAN_ROLE",
Value: c.OpConfig.PamRoleName,
},
}
if spiloConfiguration != "" {
envVars = append(envVars, v1.EnvVar{Name: "SPILO_CONFIGURATION", Value: spiloConfiguration})