Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make kubectl edit not convert GV on edits
Previously, kubectl edit was using a decoder to load in edits that converted to the internal version. It would then re-encode this decoded value to produce a patch. However, if you were editing in the object in a GroupVersion that was not the internal version, this would cause the kubectl edit command to attempt to produce a patch which changed the GroupVersion, which would fail. Now, we use a plain deserializer instead, so no conversion or defaulting occurs when loading in the edited file. Fixes #23378
- Loading branch information
bc41430
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.
TeamCity OSS :: Kubernetes Mesos :: 4 - Smoke Tests Build 19887 outcome was SUCCESS
Summary: Tests passed: 1, ignored: 267 Build time: 00:05:25