-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
PatchParams dry-run doesn't seems to work #511
Comments
Oh, that's almost certainly an oversight. We have the correct serialization to do this in |
clux
added a commit
that referenced
this issue
May 5, 2021
Pr in #512, untested but think it should work. Will verify tomorrow. |
clux
added a commit
that referenced
this issue
May 5, 2021
@clux seems good to me ! 💯 |
clux
added a commit
that referenced
this issue
May 6, 2021
patchparams should use correct ser for dry-run bool - fixes #511
Released in 0.53.0. Thanks again. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
First of all I want to thank you all for this wonderful library. I'm pretty new in Rust and I'm currently trying to use the PatchParams in order to use the dry-run feature. I'm currently following this example Example. However I'm encountering an error which you can find below
Below is the code I'm using for my experiment
The error seems to indicate that the
dryRun
is sending the valuetrue
instead ofAll
. However I don't really know if it's tight to a kubernetes version or not. What do you think ? (My tests are done on k3d, and GKE v1.17.17-gke.3700)Analysis of the issue & trying to resolve the issue
From what I could found, it seems that the dryRun value is set to
true
by thepopulate_qp
method (located in the kube/src/api/params.rs). Locally I edited the library and changed the value fromtrue
toAll
and seems to work.The text was updated successfully, but these errors were encountered: