-
Notifications
You must be signed in to change notification settings - Fork 39.6k
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
Create fuzz testing for kubectl apply #26234
Comments
I would like to help with this bug. |
@dshulyak that would be great. Thanks :) |
@adohe @bgrant0607 Am i right that the goal is to validate k8s objects using schema after applying ThreeWayMergePatch?
|
@dshulyak I think the main challenge is how to determine correctness of the result. That needs more thought before this will be worth doing. |
/sig cli |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
cc @apelisse |
I don't necessarily agree that the first statement should lead to the second. I'll keep in mind that we want solid unit-testing for diff/patch. I think "determining correctness" would indeed be an unnecessary challenge. |
We have server-side apply now. Is this issue description still right? |
It's hard to tell for sure. We haven't really created fuzzing, I think we have a much stronger test suite now. We're also not bug-free (obviously), but I think this issue is somewhat irrelevant, let's close it. |
@apelisse: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
We discover bugs in kubectl apply on a field-by-field basis: #26229, #23551.
We don't have rigorous testing of the diff and patch code, nor of the API spec itself. There are many known problems, such as lack of ability to distinguish unset fields from Go default values for non-pointer primitive fields.
We should develop a random fuzz tester for kubectl apply.
cc @ghodss @kubernetes/kubectl
The text was updated successfully, but these errors were encountered: