Fix missing labels in the replica service selector.

This commit is contained in:
Oleksii Kliukin 2017-08-02 17:15:39 +02:00
parent 50754c9a81
commit a8b5b77cc4
1 changed files with 1 additions and 1 deletions

View File

@ -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