• Kubernetes Submit Queue's avatar
    Merge pull request #57978 from vmware/fix-vsphere-connection · d40cd365
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 57511, 57978). 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>.
    
    Renews cached NodeInfo with new vSphere connection
    
    **What this PR does / why we need it**:
    This PR modifies two public functions of nodemanager.go- GetNodeInfo and GetNodeDetails. For both these functions NodeInfo object is renewed with new GoVmomiClient and new vclib VirtualMachine and Datacenter.
    
    **Which issue(s) this PR fixes** :
    Fixes vmware#404 
    
    **Special notes for your reviewer**:
    Code has been structured to minimize impact on existing 1.9 release code and any side-effects due to NodeInfo modification. This is a quick solution for vSphere connection renewal  problem. A more enhanced solution is target for upcoming major release.
    
    Testing:
    
    - [x] Successfully tried out pod creation, deletion with dynamic volume.
    - [x] Successfully ran e2e tests.
     
    
    **Release note**:
    ```release-note
    Fixes authentication problem faced during various vSphere operations.
    ```
    d40cd365
Name
Last commit
Last update
..
providers Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
README.md Loading commit data...
cloud.go Loading commit data...
doc.go Loading commit data...
plugins.go Loading commit data...