mongo-k8s-sidecar icon indicating copy to clipboard operation
mongo-k8s-sidecar copied to clipboard

Introduce travis-based integration testing

Open Skeen opened this issue 5 years ago • 0 comments

This PR introduces a .travis.yml file, which tests the minikube statefulset example.

In order to enable Travis on this repository (assuming the PR gets merged), please follow: https://docs.travis-ci.com/user/tutorial/

Setup shouldn't take more than 5 minutes.

Issues

Upon creating this minor test-suite, I've hit upon #86 and #85 both of which affect the master branch.

  • #86 has a quick workaround: kubectl create clusterrolebinding default-admin --clusterrole cluster-admin --servicaccount=default:default
  • #85 seems to require changes to the sidecar itself, but does only seem to affect certain kubernetes versions / bootstrappers (affects kubernetes v1.10.0, but not v1.12.0).

The build log for the #86 effected build can be seen here:

  • https://travis-ci.com/Skeen/mongo-k8s-sidecar/builds/93256103

While the sidecar error produced with kubernates v1.10.0 for #85 can be seen here:

  • https://github.com/cvallance/mongo-k8s-sidecar/issues/85#issuecomment-443456853

Credits

The .travis.yml file is inspired by: https://github.com/LiliC/travis-minikube and this blog post: https://blog.travis-ci.com/2017-10-26-running-kubernetes-on-travis-ci-with-minikube

Skeen avatar Dec 01 '18 22:12 Skeen