Skip to content

Commit 5a6da72

Browse files
RafiaSabihRafia Sabih
and
Rafia Sabih
authored
avoid hard-codeed spilo-role (zalando#1246)
Co-authored-by: Rafia Sabih <[email protected]>
1 parent dc9a5b1 commit 5a6da72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cluster/connection_pooler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (c *Cluster) connectionPoolerLabels(role PostgresRole, addExtraLabels bool)
8787

8888
if addExtraLabels {
8989
extraLabels := map[string]string{}
90-
extraLabels["spilo-role"] = string(role)
90+
extraLabels[c.OpConfig.PodRoleLabel] = string(role)
9191

9292
poolerLabels = labels.Merge(poolerLabels, extraLabels)
9393
}

0 commit comments

Comments
 (0)