• Kubernetes Submit Queue's avatar
    Merge pull request #59365 from ayushpateria/patch-sts · 249ecab7
    Kubernetes Submit Queue authored
    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.
    ```
    249ecab7
Name
Last commit
Last update
..
BUILD Loading commit data...
OWNERS Loading commit data...
controller_history.go Loading commit data...
controller_history_test.go Loading commit data...