-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: support kubernetes server-side validation #1230
Comments
I believe this is being tracked as part of #352. There is also a preview feature to do server side diffing available via https://www.pulumi.com/docs/reference/pkg/kubernetes/provider/#enabledryrun_nodejs. @lblackstone Does the existing support include doing server-side validation as well? Or is that tracked separately anywhere? |
We're already performing validation by default whenever possible: pulumi-kubernetes/provider/pkg/provider/provider.go Lines 1045 to 1054 in d787167
This unfortunately has the limitation of not validating if the resource includes a computed value, or if the cluster is unreachable during preview. |
Hey there, |
Is there any update on this? We're having our developers have more and more access to submitting PRs, and we're finding that because they can't run preview themselves, more errors are being introduced for things we can't tell via code review. One thing that bit us just today was using a non-standard cron schedule. By looking at it, it looks perfectly valid, but it isn't in Kubernetes. |
I crossed with this issue many times as well, even noticed some false updates where an typo in a field was accepted as a valid update, we got that by doing an update with refresh. |
You can opt in to server-side apply today using the https://www.pulumi.com/docs/reference/pkg/kubernetes/provider/#enabledryrun_go flag, but it isn't well tested yet, and likely has some bugs. Finishing this is still high on the priority list, but no updates beyond that for now. If you do enable the feature flag, please file issues for any bugs you encounter. |
@lblackstone Is there any way to know if that flag has been properly picked up by pulumi (some way to verify it's working)? |
The logs should include messages of the form |
Server-side apply/diff support can be enabled using the enableServerSideApply Provider flag, so I'll close this as fixed. |
Problem description
kubectl apply --help
i hope
pulumi preview
can execute server-side validation, this would be help avoid some wrong PR being merged. something likeinvalid name
orxxx not allowed
. thanks you very muchI saw an issue in the following Pulumi Program:
I saw an issue in the following documentation:
I had trouble finding the information that I needed:
Other:
Errors & Logs
Affected product version(s)
Reproducing the issue
Suggestions for a fix
The text was updated successfully, but these errors were encountered: