For post deployment/upgrade testing in kubernetes, what is the best trigger for the tests

11/6/2019

I am adding end-to-end tests to our dev env which is in kubernetes. I'd like to kick off tests whenever a service is updated. My question is: what is the best way to kick off tests when a new/updated service is ready.

I have found two options that seem ok, but not perfect:

1) post-upgrade helm chart hooks

2) validating admission webhooks

Does anyone have experience in this regard or an opinion on the best way? Is there another way that I have missed?

EDIT: After suggesting admission webhooks to my devops team, they pointed me to kubernetes controllers and I found this:

https://github.com/bitnami-labs/kubewatch

I think that kubewatch will meet my needs.

-- chrismead
kubernetes

0 Answers