I hope all of you are well.
I have a question regarding using the --dry-run flag. The followings are from k8s documentation
Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.
It seems that if we use --dry-run=client, it does NOT perform validation of the yaml file since it’s NOT passed to the API server. However, if we use --dry-run=server, it performs validation of the yaml file. My question is, from the doc, it says that it does NOT persist the resource, just to clarify that it does NOT create the actual object right? Even though we submit the request to api-server? In that case, I guess it would be better to use --dry-run=server since you also get validation?