mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 20:41:34 +02:00
Fix missing labels in the replica service selector.
This commit is contained in:
@@ -442,7 +442,7 @@ func (c *Cluster) generateService(role postgresRole, newSpec *spec.PostgresSpec)
|
||||
}
|
||||
|
||||
if role == replica {
|
||||
serviceSpec.Selector = map[string]string{c.OpConfig.PodRoleLabel: string(replica)}
|
||||
serviceSpec.Selector = c.roleLabelsSet(role)
|
||||
}
|
||||
|
||||
var annotations map[string]string
|
||||
|
||||
Reference in New Issue
Block a user