k3s/pkg/controller/statefulset
Kubernetes Submit Queue 249ecab74e
Merge pull request #59365 from ayushpateria/patch-sts
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Fix StatefulSet set-based selector bug

**What this PR does / why we need it**:
ControllerRevisions were using selectors as the labels, in case of set-based selectors, the helper function to convert selectors to labels would break. This PR uses pod labels for ControllerRevision labels instead of selectors.
**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #59266

**Special notes for your reviewer**:
I'm trying to learn Kubernetes codebase and would be happy to make changes if anything is off.
**Release note**:

```release-note
Fix StatefulSet to work with set-based selectors.
```
2018-02-27 10:21:00 -08:00
..
BUILD Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
OWNERS Remove kargakis from OWNERS, add tnozicka 2017-09-19 11:05:23 +02:00
stateful_pod_control.go Merge pull request #55792 from dhilipkumars/statefulset-appsv1 2018-01-26 06:54:33 -08:00
stateful_pod_control_test.go pkg/apis/core: mechanical import fixes in dependencies 2017-11-09 12:14:08 +01:00
stateful_set.go Promote SS to apps/v1 2018-01-18 13:48:52 +05:30
stateful_set_control.go Promote SS to apps/v1 2018-01-18 13:48:52 +05:30
stateful_set_control_test.go Promote SS to apps/v1 2018-01-18 13:48:52 +05:30
stateful_set_status_updater.go Promote SS to apps/v1 2018-01-18 13:48:52 +05:30
stateful_set_status_updater_test.go Promote SS to apps/v1 2018-01-18 13:48:52 +05:30
stateful_set_test.go Promote SS to apps/v1 2018-01-18 13:48:52 +05:30
stateful_set_utils.go Modify tests 2018-02-22 19:19:06 +05:30
stateful_set_utils_test.go Promote SS to apps/v1 2018-01-18 13:48:52 +05:30