Skip to content

Yolean/kube-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

kube-test

A test pod is one with labels

        test-target: your-project
        test-type: readiness

...that has status NotReady whenever an assertion fails. This means you can see the status of your services using:

kubectl get pods -l test-type=readiness -w --all-namespaces

(add ,test-target=your-project to -l to see only your tests)

Docker images

You can use any container, any language, but these include some tools we typically need.

Test development

A common pattern is to trigger container restart on ConfigMap changes, but you might have a time-consuming setup step and instead prefer to replace the run step's sourc(es) in the running container, and only generate a ConfigMap when you're done.

If https://kubernetes.io/docs/tasks/debug-application-cluster/local-debugging/ is too heavyweight, a kubectl cp based approach might suffice. Could be automated using for example

A REPL might help too. With the nodejs container do kubectl exec -ti [pod] node.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published