• Kubernetes Submit Queue's avatar
    Merge pull request #50719 from crimsonfaith91/immutability · 9a3dfbca
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 50719, 51216, 50212, 51408, 51381)
    
    Make selector immutable for v1beta2 deployment, replicaset and daemonset prior update
    
    **What this PR does / why we need it**:
    This PR ensures controller selector is immutable for deployment and replicaset prior update by ignoring any change to `Spec`.
    
    **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #50808
    
    **Special notes for your reviewer**:
    This will be a breaking change.
    
    **Release note**:
    
    ```release-note
    For Deployment, ReplicaSet, and DaemonSet, selectors are now immutable when updating via the new `apps/v1beta2` API. For backward compatibility, selectors can still be changed when updating via `apps/v1beta1` or `extensions/v1beta1`.
    ```
    9a3dfbca
Name
Last commit
Last update
..
e2e Loading commit data...
e2e_federation Loading commit data...
e2e_node Loading commit data...
fixtures Loading commit data...
images Loading commit data...
integration Loading commit data...
kubemark Loading commit data...
list Loading commit data...
soak Loading commit data...
utils Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
test_owners.csv Loading commit data...
test_owners.json Loading commit data...