• Kubernetes Submit Queue's avatar
    Merge pull request #58713 from vmware/test-bootstrap · 5e751e4d
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 58713, 58841). 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>.
    
    Created bootstrap logic for vSphere test
    
    **What this PR does / why we need it**:
    Add bootstrapping logic and Context for vSphere tests. This context can be utilized to hold information like node-vsphere mapping, which needs to be initialized only once per test suit run.
    
    sync.Once takes care of executing bootstrapping only once for all the specs. 'waiting' channel takes care of making sure that parallel test spec executions wait for bootstrapping to finish before moving on.
    
    **Which issue(s) this PR fixes** 
    Fixes https://github.com/vmware/kubernetes/issues/437, partly
    
    **Special notes for your reviewer**:
    Successfully ran make.
    Tested by added additional log messages to bootstrap process (now removed). Made sure bootstrapping logic is getting invoked just once and bootstrapping is done by the time It-blocks are executed.
    
    **Release note**:
    ```release-note
    NONE
    ```
    5e751e4d
Name
Last commit
Last update
..
conformance Loading commit data...
e2e Loading commit data...
e2e_node Loading commit data...
fixtures Loading commit data...
images Loading commit data...
integration Loading commit data...
kubemark Loading commit data...
list Loading commit data...
soak Loading commit data...
utils Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
test_owners.csv Loading commit data...
test_owners.json Loading commit data...