kube-test-harness
kube-test-harness copied to clipboard
What should the API look like?
At the moment, the functions are all flat on the Test
object, ie. test.CreateDeploymentFromFile()
, it may be nice to have very thin objects wrapping the k8s objects ie. test.Deployment.NewFromFile()
.
A note on handling errors. At the moment, the API does automatic error management. There are cases where we do want access to the error though (or it's expected that the call fails). Maybe we could have additional entry points with Err
or Error
at the end. These would return an error.