use correct struct and env var

This commit is contained in:
Felix Kunde 2026-04-21 16:04:51 +02:00
parent 4857694002
commit 4fa363750e
1 changed files with 2 additions and 2 deletions

View File

@ -321,13 +321,13 @@ func (c *Cluster) generateConnectionPoolerPodTemplate(role PostgresRole) (
envVars = append(envVars, c.getConnectionPoolerEnvVars()...)
infraRolesList := make([]string, 0)
for infraRoleName := range c.Config.InfrastructureRoles {
for infraRoleName := range c.InfrastructureRoles {
infraRolesList = append(infraRolesList, infraRoleName)
}
if len(infraRolesList) > 0 {
envVars = append(envVars, v1.EnvVar{
Name: "INFRASTRUCTURE_ROLES_LIST",
Name: "INFRASTRUCTURE_ROLES",
Value: strings.Join(infraRolesList, ","),
})
}