-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Calculate patches for commands using input version #53158
Calculate patches for commands using input version #53158
Conversation
cc @kubernetes/sig-cli-pr-reviews @janetkuo |
/retest |
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 @liggitt!
This fixes a 1.8 known issue, so please add a release note. Would you also add test and TODO (or open an issue for the long-term fix)?
4112b31
to
e3a8b5e
Compare
done |
kernel panic flake in pull-kubernetes-e2e-gce-bazel #50695 |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, pwittrock Associated issue: 53040 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue (batch tested with PRs 53101, 53158, 52165). If you want to cherry-pick this change to another branch, please follow the instructions here. |
…8-upstream-release-1.8 Automatic merge from submit-queue. Automated cherry pick of #53158 Fixes #53040 Cherry pick of #53158 on release-1.8. #53158: Calculate patches for commands using input version ```release-note Fixes an issue with `kubectl set` commands encountering conversion errors for ReplicaSet and DaemonSet objects ```
Commit found in the "release-1.8" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked. |
Fixes #53040
the encoder used for encoding these objects while calculating patches does not have sufficient information to select a correct version when the object does not exist in all versions of a target group (like replicasets not existing in apps/v1beta1)
this PR wraps the encoder to first convert to the same version used to read the object (based on the mapping's GroupVersion)
long-term, we should switch UpdatePodSpecForObject to work on versioned objects and v1.PodSpec and avoid conversion altogether