• Kubernetes Submit Queue's avatar
    Merge pull request #41361 from enisoc/controller-ref-manager · a8a8120e
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 41667, 41820, 40910, 41645, 41361)
    
    Refactor ControllerRefManager
    
    **What this PR does / why we need it**:
    
    To prepare for implementing ControllerRef across all controllers (https://github.com/kubernetes/community/pull/298), this pushes the common adopt/orphan logic into ControllerRefManager so each controller doesn't have to duplicate it.
    
    This also shares the adopt/orphan logic between Pods and ReplicaSets, so it lives in only one place.
    
    **Which issue this PR fixes**:
    
    **Special notes for your reviewer**:
    
    **Release note**:
    ```release-note
    ```
    
    cc @kubernetes/sig-apps-pr-reviews
    a8a8120e
Name
Last commit
Last update
..
util Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
deployment_controller.go Loading commit data...
deployment_controller_test.go Loading commit data...
progress.go Loading commit data...
recreate.go Loading commit data...
recreate_test.go Loading commit data...
rollback.go Loading commit data...
rolling.go Loading commit data...
rolling_test.go Loading commit data...
sync.go Loading commit data...
sync_test.go Loading commit data...