Conversation
|
I'm going to have to check this one out in a lot of detail based on how my local development environment didn't like this. First thing I noticed is that |
|
I did move things around based on Standard Go Project Layout.
I initially planned to factor out the |
|
I just looked, and realized |
|
You could run without make. |
|
got a little time to look at this, and things are working MUCH better in my local environment now. Honestly, I was expecting there to be something deep wrong with my outside-docker setup, but right now I've got an end-to-end feedback loop going. |
|
I added tests for chaos, unready, and duration rules. I chose to implement them outside of a container as it provides more control and gives the option of debugging. There might be a better way to verify the chaos rule, but using There probably should be at least one test that runs pod-reaper in a container to test the in-cluster config. |
|
currently trying to figure out why this isn't working in my local environment - which strikes me as got for a couple reasons. troubleshooting now |
|
I didn't see that the Dockerfile was changed in master. I will update and push a fix. |
|
@brianberzins Make sure you pull the latest from STIHLDev:e2e. It looks like you're still using glide for dependencies. |
|
uhg... that's almost certainly my bad... |
I refactored the project structure, and enabled
NewReaper()to take a filename for kubeconfig. I then created an e2e test that willI also updated k8s.io dependencies to v0.17.0 and Go version 1.13 (needed for KinD).
To run, you'll need Go v1.13. Then run
GO111MODULE="on" go get sigs.k8s.io/kind@v0.7.0 make test-e2eFrom here it should be relatively easy to add additional e2e tests. For #43, the kubeconfig file location could be read from an environment variable or the command line, which would enable you to run and debug against a local cluster.