Closed xMAC94x closed 2 months ago
Thank you , hopes the DCO works now :)
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 75.2%. Comparing base (
e57b060
) to head (dd45e6f
).
Thanks again!
Edited your post ever so slightly for the generated release notes.
Due to the URL-nature a get with an empty name is processed as a list call.
kube then fails to parse the result from the server. Other HTTP METHODS, like "DELETE" are also affected and e.g. cause the deletion of ALL objects. See the issue for more info.
Fixes #1540
Motivation
As described in #1540 I accidentally had a
&str
empty and was wondering about the weirdserde
error and though that something was broken somewhere else. Having a early on client-side validation makes the error clear. During testing I found out thatDELETE
was also affected and might have quite some impact.Solution
Many Requests have some kind of params validation, similar I introduced a
validate_name
fn for those requests that operator on a single instance (e.g.get
delete
patch
replace
). Requests likelist
andwatch
are unaffected.I added a single test for the get, idk if its necessrary to check all, but I could also provide more checks