mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-18 01:31:01 +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 {
|
if role == replica {
|
||||||
serviceSpec.Selector = map[string]string{c.OpConfig.PodRoleLabel: string(replica)}
|
serviceSpec.Selector = c.roleLabelsSet(role)
|
||||||
}
|
}
|
||||||
|
|
||||||
var annotations map[string]string
|
var annotations map[string]string
|
||||||
|
|||||||
Reference in New Issue
Block a user