Hi I need a way to diff my local newly generated kubernetes deployment object with the currently deployed Kubernetes object .
The locally generated Kubernetes Deployment object doesnt specify a lot of the defaults and when i query Kubernetes object from the api server, those defaults are filled in. Is there a api/utility function available in kubernetes source code which can take my locally generated kubernetes deployment yaml/json and apply defaults to the missing configurations and then help it diff with the current kubenretes deployment object i get from the server. It seems this functionality might available in the kubectl apply, but we are not using kubectl apply but essentially using the unversioned go client to make api calls.
Any help is appreciated ?
-mayank