Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e/storage: testing of external storage drivers #72836

Merged
merged 1 commit into from Mar 7, 2019

Commits on Mar 6, 2019

  1. e2e/storage: testing of external storage drivers

    It is useful to apply the storage testsuite also to "external" (=
    out-of-tree) storage drivers. One way of doing that is setting up a
    custom E2E test suite, but that's still quite a bit of work.
    
    An easier alternative is to parameterize the Kubernetes e2e.test
    binary at runtime so that it instantiates the testsuite for one or
    more drivers. Some parameters have to be provided before starting the
    test because they define configuration and capabilities of the driver
    and its storage backend that cannot be discovered at runtime. This is
    done by populating the DriverDefinition with the content of the file
    that the new -storage.testdriver parameters points to.
    
    The universal .yaml and .json decoder from Kubernetes is used. It's
    flexible, but has some downsides:
    - currently ignores unknown fields (see kubernetes#71589)
    - poor error messages when fields have the wrong type
    
    Storage drivers have to be installed in the test cluster before
    starting e2e.test. Only tests involving dynamically provisioned
    volumes are currently supported.
    pohly committed Mar 6, 2019
    Copy the full SHA
    6644db9 View commit details
    Browse the repository at this point in the history