You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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#9260Closes#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 <[email protected]>
// Expect it to be called with NO resourceVersion, uid, selfLink, or creationTimestamp in the metadata, however, it is okay to have it in 'last-applied-configuration'
0 commit comments