-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove undeeded metadata when applying k8s objects (#9267)
### What does this PR do? * Removes undeeded metadata objects which are not applicable / not needed when applying a patch. This includes resourceVersion, UID, selfLink and creationTimestamp. These are automatically created when applying a resource if undefined / blank. * This change is needed as Kubernetes javascript client added serialization / checks with regards to creationTimestamps as well as other metadata objects from PR: kubernetes-client/javascript#1695 ### Screenshot / video of UI <!-- If this PR is changing UI, please include screenshots or screencasts showing the difference --> ### What issues does this PR fix or reference? <!-- Include any related issues from Podman Desktop repository (or from another issue tracker). --> Closes #9260 Closes #9262 ### How to test this PR? <!-- Please explain steps to verify the functionality, do not forget to provide unit/component tests --> - [X] Tests are covering the bug fix or the new feature 1. Edit any k8s yaml 2. Press apply 3. Success 4. Edit again 5. Press apply 6. Success Signed-off-by: Charlie Drage <charlie@charliedrage.com>
- Loading branch information
Showing
2 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters