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

Let Kaniko E2E test work with a KO_DOCKER_REPO env #4401

Closed
wants to merge 1 commit into from

Commits on Dec 3, 2021

  1. Let Kaniko E2E test work with a KO_DOCKER_REPO env

    If test runner set a KO_DOCKER_REPO variable, use it, so we run the tests
    against an external container registry. If not set, the kaniko tests
    will spin up its own local registry. Bring back the GCP secret support
    so this works in the existing CI, but also supports the case where
    KO_DOCKER_REPO points to a container registry where no secret required,
    like in the kind based tests.
    
    Add a "test_setup" function to the e2e script, which is picked up after
    the setup of the cluster, which provisions a GCP service account to be
    used by tests via the GCP_SERVICE_ACCOUNT_KEY_PATH env variable.
    
    Since the local registry runs on HTTP (not HTTPS), the local registry
    approach does not work for the helm test as the kubelet tries to use
    HTTPS. If KO_DOCKER_REPO is not specified we either fail or skip the
    test (no change in behaviour) depending on the value of missingKoFatal
    
    This setup makes it easier to run E2E tests in different environments,
    where a registry may or may not be available.
    
    Signed-off-by: Andrea Frittoli <andrea.frittoli@uk.ibm.com>
    afrittoli committed Dec 3, 2021
    Configuration menu
    Copy the full SHA
    cdec71d View commit details
    Browse the repository at this point in the history