mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 06:25:20 +02:00
Set SPILO_PROVIDER=aws when IRSA is configured (#3185)
Signed-off-by: tcondeixa <tscondeixa@gmail.com>
This commit is contained in:
@@ -1101,6 +1101,10 @@ func (c *Cluster) generateSpiloPodEnvVars(
|
||||
opConfigEnvVars = append(opConfigEnvVars, v1.EnvVar{Name: "LOG_BUCKET_SCOPE_PREFIX", Value: ""})
|
||||
}
|
||||
|
||||
if c.OpConfig.IRSARoleARN != "" {
|
||||
opConfigEnvVars = append(opConfigEnvVars, v1.EnvVar{Name: "SPILO_PROVIDER", Value: "aws"})
|
||||
}
|
||||
|
||||
envVars = appendEnvVars(envVars, opConfigEnvVars...)
|
||||
|
||||
return envVars, nil
|
||||
|
||||
Reference in New Issue
Block a user