You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After kubectl kuttl test runs, a kubeconfig file appears in current directory.
What you expected to happen:
No garbage left behind.
How to reproduce it (as minimally and precisely as possible):
$ cat kuttl-test.yaml
apiVersion: kuttl.dev/v1beta1
kind: TestSuite
testDirs:
- ./empty
$ ls kubeconfig
ls: kubeconfig: No such file or directory
$ kubectl kuttl test --namespace blah
=== RUN kuttl
harness.go:457: starting setup
harness.go:248: running tests using configured kubeconfig.
harness.go:285: Successful connection to cluster at: https://kubernetes.docker.internal:6443
harness.go:353: running tests
harness.go:74: going to run test suite with timeout of 30 seconds for each step
harness.go:365: testsuite: ./empty has 0 tests
=== RUN kuttl/harness
=== CONT kuttl
harness.go:399: run tests finished
harness.go:508: cleaning up
harness.go:563: removing temp folder: ""
--- PASS: kuttl (1.22s)
--- PASS: kuttl/harness (0.00s)
PASS
$ ls -l kubeconfig
-rw-r--r-- 1 marcin staff 5484 Jun 9 12:24 kubeconfig
$
Cloud provider or hardware configuration: my laptop, docker for mac
OS (e.g. from /etc/os-release): MacOS
Kernel (e.g. uname -a): Darwin Marcins-MBP 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64
Install tools: krew
The text was updated successfully, but these errors were encountered:
A related issue is that a hardcoded static kubeconfig filename apparently causes concurrent kuttl runs in the same directory to step on each other's toes.
To add, the kubeconfig file is created even if we provide a non-kuttl-managed cluster via KUBECONFIG environment var (it creates a copy of $KUBECONFIG).
What happened:
After
kubectl kuttl test
runs, akubeconfig
file appears in current directory.What you expected to happen:
No garbage left behind.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
👋🏻
Environment:
kubectl version
):kubectl kuttl version
):KUTTL Version: version.Info{GitVersion:"0.10.0", GitCommit:"fc8c0f2", BuildDate:"2021-05-19T13:16:03Z", GoVersion:"go1.16.3", Compiler:"gc", Platform:"darwin/amd64"}
uname -a
):Darwin Marcins-MBP 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64
krew
The text was updated successfully, but these errors were encountered: