postgres-operator/pkg
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
..
apiserver Merge pull request #240 from zalando-incubator/feature/goreport-improvements 2018-02-22 11:31:08 +01:00
cluster Remove team from statefulset selector (#271) 2018-04-06 13:58:47 +02:00
controller Improve infrastructure role definitions (#208) 2018-04-04 17:21:36 +02:00
spec Improve infrastructure role definitions (#208) 2018-04-04 17:21:36 +02:00
util Change the default values to closer match previous behaviour 2018-03-26 11:43:46 +02:00