• Kubernetes Submit Queue's avatar
    Merge pull request #67461 from janetkuo/ds-collision-count · ccef02e0
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 67461, 67464, 67416). 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>.
    
    Avoid unnecessary DaemonSet collisionCount bump
    
    **What this PR does / why we need it**: Sometimes DaemonSet controller will bump its collisionCount more than necessary when the collisionCount of the DaemonSet in the cache store hasn't been updated. This won't affect users, as collisionCount is only used for creating unique hash and the number doesn't matter as long as it changes. This fix avoids the unnecessary collisionCount updates and de-flakes the DaemonSet test for collisionCount. 
    
    **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 #67273
    
    **Special notes for your reviewer**: @kubernetes/sig-apps-pr-reviews 
    
    **Release note**:
    
    ```release-note
    NONE
    ```
    ccef02e0
Name
Last commit
Last update
..
util Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
daemon_controller.go Loading commit data...
daemon_controller_test.go Loading commit data...
doc.go Loading commit data...
update.go Loading commit data...
update_test.go Loading commit data...