• Kubernetes Submit Queue's avatar
    Merge pull request #59887 from… · 01517e53
    Kubernetes Submit Queue authored
    Merge pull request #59887 from dims/process-cloud-nodes-in-ccm-before-creating-shared-informer-handler
    
    Automatic merge from submit-queue. 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>.
    
    Process existing cloud nodes in CCM
    
    **What this PR does / why we need it**:
    
    This is a timing issue. If kubelet(s) get started before the CCM is
    started, the shared informer event handler does not process them at
    all. So we should loop through these before. We run this in a
    go wait.Until loop to tolerate errors when listing the nodes and
    giving an opportunity for any scripts that may need to setup RBAC
    roles etc.
    
    
    **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 #58613
    
    **Special notes for your reviewer**:
    
    **Release note**:
    
    ```release-note
    NONE
    ```
    01517e53
node_controller.go 18.7 KB