Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/e2e: Fix unset when gathering CI testing artifacts (#2450)
Update the testing e2e packages and ensure that the $KUBECONFIG environment variable is correctly set before running the bash script responsible for collecting CI artifacts. This should fix the following error message that was popping up in individual CI runs: ``` collecting logs in the ./artifacts/ artifacts directory ../test/e2e/collect-ci-artifacts.sh: line 7: KUBECONFIG: parameter null or not set failed to collect namespace artifacts: exit status 1 ``` Update the kind provisioner to avoid prematurely removing the temporary directory that contains the constructed (and ephemeral) kubeconfig file and track that metadata in the TestContext structure. In the case that field is unset for that object, fall back to the os.Getenv("KUBECONFIG") value. Signed-off-by: timflannagan <timflannagan@gmail.com> Upstream-repository: operator-lifecycle-manager Upstream-commit: 6dc902654d4f2089da9da56cc6b1d574be995d20
- Loading branch information