• Kubernetes Submit Queue's avatar
    Merge pull request #61615 from janetkuo/rm-adopt-hash · 2ba2cc13
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 61790, 61808, 60339, 61615, 61757). 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>.
    
    Deployment to stop adding pod-template-hash labels/selector on adoption
    
    **What this PR does / why we need it**: This is a blocker for #55714, because ReplicaSet selector becomes immutable in `apps/v1`. With controller ref, Deployment's ReplicaSets and Pods can avoid fighting with each others without unique label/selector (pod-template-hash), so it's safe to stop adding hash label/selector on adoption. 
    
    **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 #61433
    
    **Special notes for your reviewer**: This is a behavioral change to Deployment controller that will affect all versions of Deployment APIs (`apps/v1`, `extensions/v1beta1`, `apps/v1beta1`, `apps/v1beta2`). 
    
    **Release note**:
    
    ```release-note
    Deployment will stop adding pod-template-hash labels/selector to ReplicaSets and Pods it adopts. Resources created by Deployments are not affected (will still have pod-template-hash labels/selector). 
    ```
    2ba2cc13
Name
Last commit
Last update
..
BUILD Loading commit data...
OWNERS Loading commit data...
cronjob.go Loading commit data...
daemon_restart.go Loading commit data...
daemon_set.go Loading commit data...
deployment.go Loading commit data...
disruption.go Loading commit data...
framework.go Loading commit data...
job.go Loading commit data...
network_partition.go Loading commit data...
rc.go Loading commit data...
replica_set.go Loading commit data...
statefulset.go Loading commit data...
types.go Loading commit data...