Open Constantin07 opened 1 year ago
This is more an question to understand existing approach(es) as I couldn't find explicit answer documented.
I'm trying to run the tests in Golang container but when executing the KubectlApply it complains about missing kubectl.
kubectl
Is there a way to deploy test K8s infra without the need of kubectl (using k8s client) ?
I'm not building a dedicated docker image with copied tests inside, just running the Golang container and mounting current folder with test(s).
PS: I would like to avoid creating a custom Golang image with just kubectl inside.
Hi, kubectl is required to be installed in the environment
References: https://github.com/gruntwork-io/terratest/blob/master/modules/k8s/kubectl.go#L40
Thanks @denis256 for confirmation.
This is more an question to understand existing approach(es) as I couldn't find explicit answer documented.
I'm trying to run the tests in Golang container but when executing the KubectlApply it complains about missing
kubectl
.Is there a way to deploy test K8s infra without the need of
kubectl
(using k8s client) ?I'm not building a dedicated docker image with copied tests inside, just running the Golang container and mounting current folder with test(s).
PS: I would like to avoid creating a custom Golang image with just kubectl inside.