testkube
testkube copied to clipboard
Support ServiceAccount in Testkube CLI
Describe the enhancement you'd like to see
At the moment, when Testkube CLI is running within Kubernetes, we need to either:
- try to convert service account to kubeconfig, or
- use
--client direct
with internal API URL
It would be great if Testkube CLI would use the provided Service Account, similarly to kubernetes/client-go's example.
The logic responsible for connecting with Kubernetes is here.
Additional context
As an example, using bitnami/kubectl
image with service account in Kubernetes will lead to kubectl
working automatically.
can you give an example of the command that the user is going to write ?
Any kind of command. As an example, testkube run test example-test
to schedule a test from within Kubernetes cluster.
Yes. Is there an alternative, perhaps more declarative pattern for triggering a test other than invoking testkube CLI?
It's one thing to sync the test definitions to Kubernetes with a GitOps approach.
But what about invoking the tests using similar GitOps approach? Demo/docs only mention testkube CLI.
CLI could be run as a (Cron)Job but doesn't support ServiceAccount-mapped tokens.
sure, http://docs.testkube.io/articles/test-executions