avoid hard-codeed spilo-role

This commit is contained in:
Rafia Sabih 2020-12-09 09:29:46 +01:00
parent dc9a5b1e61
commit 9fdd69d278
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ func (c *Cluster) connectionPoolerLabels(role PostgresRole, addExtraLabels bool)
if addExtraLabels {
extraLabels := map[string]string{}
extraLabels["spilo-role"] = string(role)
extraLabels[c.OpConfig.PodRoleLabel] = string(role)
poolerLabels = labels.Merge(poolerLabels, extraLabels)
}