• Kubernetes Submit Queue's avatar
    Merge pull request #48366 from wongma7/flex-e2e · b070227e
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 50119, 48366, 47181, 41611, 49547)
    
    Add basic install and mount flexvolumes e2e tests
    
    fixes https://github.com/kubernetes/kubernetes/issues/47010
    
    These two tests install a skeleton "dummy" flex driver, attachable and non-attachable respectively, then test that a pod can successfully use the flex driver. They are labeled disruptive because kubelet and controller-manager get restarted as part of the flex install. IMO it's important to keep this install procedure as part of the test to isolate any bugs with the startup plugin probe code.
    
    There is a bit of an ugly dependency on cluster/gce/config-test.sh because --flex-volume-plugin-dir must be set to a dir that's readable from controller-manager container and writable by the flex e2e test. The default path is not writable on GCE masters with read-only root so I picked a location that looks okay.
    
    In the "dummy" drivers I trick kubelet into thinking there is a mount point by doing "mount -t tmpfs none ${MNTPATH} >/dev/null 2>&1", hope that is okay.
    
    I have only tested on GCE and theoretically they may work on AWS but I don't think there is a need to test on multiple cloudproviders.
    
    -->
    ```release-note
    NONE
    ```
    b070227e
Name
Last commit
Last update
..
e2e Loading commit data...
e2e_federation 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...