mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-04 01:48:32 +02:00
avoid hard-codeed spilo-role
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user