Running go tests inside a kubernetes container

I work heavily with kubernetes and have some tests that depend on Projected Service Account token volumes. This means that I have to run my integration tests inside a kubernetes pod.

I use skaffold to deploy the pod, but skaffold wants the pod to run forever and so exits with an error because the pod exits.

I think I’ll convert it to a job, but I’m wondering if there’s a better way to go about this. Has anyone had a similar issue with Projected Service Account token volumes and found a good work around?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.