kapp
kapp copied to clipboard
server side dryRun should be used before apply
One of the problem with kubectl apply is that it can apply some resources before encountering problem with another.
Many of errors can be caught dryRun (https://kubernetes.io/blog/2019/01/14/apiserver-dry-run-and-kubectl-diff/) , which has an added benefit of invoking validating admission controllers.
kapp apply should make a single dryRun apply and if comes clean proceed to the actual apply.
that sounds like a good idea. ill check it out shortly.
We will need to make the value of a flag like this available as a part of :
ResourceImplOptsSo that we can pass the DryRun option toapi-machineryforCreate(),Update(),Patch()andDelete()API calls.AddOrUpdateChangeOptsSo thatkappdoes not wait for changes to appear and does not attempt to do aGet()API call for the resource.