qbec icon indicating copy to clipboard operation
qbec copied to clipboard

qbec validate should do a server-side dry-run

Open melugoyal opened this issue 4 years ago • 2 comments

qbec validate should perform a server-side dry-run using the options provided here. this will ensure the validate step runs through admission webhooks configured on the Kubernetes API server, and make the validation more meaningful.

melugoyal avatar May 25 '21 04:05 melugoyal

@sherman-grewal - super-useful feature. Should be an opt-in and not turned on by default.

gotwarlost avatar Jun 25 '21 22:06 gotwarlost

When implemented, this feature should be used with caution as there could be admission webhooks with side-effects. See https://kubernetes.io/docs/reference/using-api/api-concepts/#make-a-dry-run-request for details. For API servers not supporting the dry-run=server this could result in persistence. https://github.com/kubernetes/kubectl/blob/a8d3024f1144e77593d35c3f46ce4fd09c83de96/pkg/cmd/apply/apply.go#L419-L425

harsimranmaan avatar Oct 09 '21 22:10 harsimranmaan