kube-test-harness icon indicating copy to clipboard operation
kube-test-harness copied to clipboard

What should the API look like?

Open dlespiau opened this issue 6 years ago • 1 comments

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().

dlespiau avatar Jun 22 '18 12:06 dlespiau

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.

dlespiau avatar Jun 26 '18 10:06 dlespiau