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
Patch passes on dry-run and fails for real #67344
Comments
The "not patched" text is printed if the resulting object is the same as the initial object. Since your patch had a typo ( There are a couple things there:
|
Maybe the real issue is that dry run said it was patched...
…On Mon, Aug 13, 2018, 1:02 PM Jordan Liggitt ***@***.***> wrote:
The "not patched" text is printed if the resulting object is the same as
the initial object.
Since your patch had a typo (metatdata != metadata), the patch didn't
affect any fields in the object, and the resulting object was the same as
the starting object.
There are a couple things there:
- saying "not patched" when a patch was submitted/accepted is
misleading when it really means "the patch was a no-op"
- the server doesn't currently detect/report field typos
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#67344 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFVgVJzZHQ5Cgrfvzn6PH_LbPyhrZxK4ks5uQdtcgaJpZM4V65op>
.
|
yeah... in dry-run "patched" means "a patch was (would have been) submitted to the server". in non-dry-run "patched" means "a patch was submitted to the server and changed the object" |
Can we do better? Without running apiserver code locally, it can not be
100%, but ...
Otherwise let's close this (and thanks for seeing my typo :)
…On Mon, Aug 13, 2018 at 1:33 PM Jordan Liggitt ***@***.***> wrote:
yeah... in dry-run "patched" means "a patch was (would have been)
submitted to the server". in non-dry-run "patched" means "a patch was
submitted to the server and changed the object"
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#67344 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFVgVFBP4I83sbcC0JUCqgb-Mq4eP_T6ks5uQeKlgaJpZM4V65op>
.
|
client-side patch is pretty dumb (in a good way)... just passes the input patch through to the server. I'd rather not expand attempts at client-side application. |
I'd keep this open to improve the message in the "patch submitted but didn't change the object" case |
Automatic merge from submit-queue (batch tested with PRs 67347, 67307, 67358, 67364, 67385). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. kubectl: update message for a no-op patch Fixes #67344 /cc liggitt juanvallejo soltysh timoreimann /sig cli **Release note**: ```release-note NONE ```
Running a relatively recent build (a few weeks old, maybe a month).
Running with
--v=10
ends like this:The text was updated successfully, but these errors were encountered: