postgres-operator/pkg/cluster
Oleksii Kliukin 9bf80afa6b
Remove team from statefulset selector (#271)
* Remove 'team' label from the statefulset selector.

I was never supposed to be there, but implicitely statefulset
creates a selector out of meta.labels field. That is the problem
with recent Kubernetes, since statefulset cannot pick up pods
with non-matching label selectors, and we rely on statefulset
picking up old pods after statefulset replacement.

Make sure selector changes trigger replacement of the statefulset.

In the case new selector has more labels than the old one nothing
should be done with a statefulset, otherwise the new statefulset
won't see orphaned pods from the old one, as they won't match the
selector. 

See https://github.com/kubernetes/kubernetes/issues/46901#issuecomment-356418393
2018-04-06 13:58:47 +02:00
..
cluster.go Remove team from statefulset selector (#271) 2018-04-06 13:58:47 +02:00
cluster_test.go Improve infrastructure role definitions (#208) 2018-04-04 17:21:36 +02:00
exec.go return idle status when worker has nothing to do 2017-10-11 15:42:20 +02:00
filesystems.go Make use of kubernetes client-go v4 2017-07-25 15:25:17 +02:00
k8sres.go Remove team from statefulset selector (#271) 2018-04-06 13:58:47 +02:00
k8sres_test.go Add tests for load balancer function logic 2018-03-27 12:11:46 +02:00
pg.go Some improvements for golint, ineffassign and misspell 2018-02-19 17:46:31 +01:00
pod.go Modify to add extra labels only during resource creation 2018-02-26 11:11:50 +01:00
resources.go Merge pull request #240 from zalando-incubator/feature/goreport-improvements 2018-02-22 11:31:08 +01:00
sync.go Remove early stopping conditions that rely on the relica service being absent 2018-02-27 17:21:51 +01:00
types.go add comments on roles 2017-09-11 17:44:32 +02:00
util.go Remove team from statefulset selector (#271) 2018-04-06 13:58:47 +02:00
volumes.go Modify to add extra labels only during resource creation 2018-02-26 11:11:50 +01:00