kudobuilder / kudobuilder/kuttl
Issue running kuttl in a gitlab runner
- Dominant language
- Go
- Stars
- 824
- Forks
- 103
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 6
Description
Hello,
I'm trying to run kuttl in CI context using gitlab CI/CD.
In this context kuttl is launched in a gitlab runner running in a kubernetes cluster and I want to run my tests in a different kubernetes cluster. When launching the kubectl kuttl test command in this context I'm getting this error:
`$ kubectl kuttl test`
=== RUN kuttl
harness.go:457: starting setup
harness.go:248: running tests using configured kubeconfig.
harness.go:508: cleaning up
harness.go:563: removing temp folder: ""
**harness.go:589: fatal error getting client: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory**
--- FAIL: kuttl (0.00s)
FAIL
Other kubectl commands are working fine.
The tests pass when launched with the same docker image and using the same kubeconfig but launched using docker desktop.
Do you have any idea how to solve my problem ?
Thank you !
Contributor guide
Research direction
Start with the kuttl test harness paths reported in harness.go, especially setup, configured kubeconfig handling, cleanup, and the fatal client error at lines 248, 457, 508, 563, and 589. Reproduce the command in a GitLab runner on Kubernetes using the remote kubeconfig; done means the test client starts successfully without the missing service-account token error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, gitlab, go, kubernetes
- Domain
- ci-cd, cli, devops, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100