• 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
..
admissionregistration Loading commit data...
apps Loading commit data...
authentication Loading commit data...
authorization Loading commit data...
autoscaling Loading commit data...
batch Loading commit data...
cachesize Loading commit data...
certificates Loading commit data...
core Loading commit data...
extensions Loading commit data...
networking Loading commit data...
policy Loading commit data...
rbac Loading commit data...
registrytest Loading commit data...
scheduling Loading commit data...
settings Loading commit data...
storage Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
doc.go Loading commit data...