• Kubernetes Submit Queue's avatar
    Merge pull request #45924 from janetkuo/daemonset-history · dbd1503b
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    Implement Daemonset history
    
    ~Depends on #45867 (the 1st commit, ignore it when reviewing)~ (already merged)
    
    Ref https://github.com/kubernetes/community/pull/527/ and https://github.com/kubernetes/community/pull/594
    
    @kubernetes/sig-apps-api-reviews @kubernetes/sig-apps-pr-reviews @erictune @kow3ns @lukaszo @kargakis 
    
    ---
    
    TODOs:
    - [x] API changes
      - [x] (maybe) Remove rollback subresource if we decide to do client-side rollback 
    - [x] deployment controller 
      - [x] controller revision
        - [x] owner ref (claim & adoption)
        - [x] history reconstruct (put revision number, hash collision avoidance)
        - [x] de-dup history and relabel pods
        - [x] compare ds template with history 
      - [x] hash labels (put it in controller revision, pods, and maybe deployment)
      - [x] clean up old history 
      - [x] Rename status.uniquifier when we reach consensus in #44774 
    - [x] e2e tests 
    - [x] unit tests 
      - [x] daemoncontroller_test.go 
      - [x] update_test.go 
      - [x] ~(maybe) storage_test.go // if we do server side rollback~
    
    kubectl part is in #46144
    
    --- 
    
    **Release note**:
    
    ```release-note
    ```
    dbd1503b
Name
Last commit
Last update
..
compat Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
conversion.go Loading commit data...
fuzzer.go Loading commit data...
pod_specs.go Loading commit data...