-
-
Notifications
You must be signed in to change notification settings - Fork 325
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
Add support for passing the fieldValidation query parameter on patch #929
Add support for passing the fieldValidation query parameter on patch #929
Conversation
1840bf9
to
6987d6d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for this. Sensible tests. It looks sensible to me some minor comments only on documentation.
Tests failing and it seems to be because However, Therefore, for now, I'm updating the test to knowingly assert a weird string |
Ah, I think some of this might have been made necessary by other prefixes being allowed to sneak in via Generally when we have been testing this we have been testing at the |
Codecov Report
@@ Coverage Diff @@
## master #929 +/- ##
==========================================
+ Coverage 72.24% 72.44% +0.20%
==========================================
Files 64 64
Lines 4360 4392 +32
==========================================
+ Hits 3150 3182 +32
Misses 1210 1210
|
The `fieldValidation` flag should be set to `Ignore` when doing a server-side apply for a partial object. This introduces support to configure the fieldValidation parameter to all the available options. Signed-off-by: Leo Sjöberg <leo.sjoberg@gmail.com>
Signed-off-by: Leo Sjöberg <leo.sjoberg@gmail.com>
Signed-off-by: Leo Sjöberg <leo.sjoberg@gmail.com>
Signed-off-by: Leo Sjöberg <leo.sjoberg@gmail.com>
Signed-off-by: Leo Sjöberg <leo.sjoberg@gmail.com>
0748667
to
ce79903
Compare
This looks all good to me. Minor rustfmt thing (we are using nightly for fmt, which causes some confusion), but i'll just merge it to test if our rustfmt fixup job is working :-) (Edit: yes) Thanks for doing this, and for addressing all the minor technical things here! Appreciate it! |
The
fieldValidation
flag should be set toIgnore
when doing a server-sideapply for a partial object. This introduces support to configure the
fieldValidation parameter to all the available options.
Motivation
In order to increase parity with the Go library, and to support partial (invalid, but applicable for patch) server-side
Patch::Apply
requests, thekube
library should support a way to configure thefieldValidation
query parameter.Solution
This MR introduces a
field_validation
property and method onPatchParams
, allowing the configuration of thefieldValidation
query parameter.