Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Fix ignite-spawn's formatting when performing cleanup on VM metadata #336

Merged
merged 1 commit into from
Aug 14, 2019

Conversation

twelho
Copy link
Contributor

@twelho twelho commented Aug 14, 2019

ignite-spawn directly writes the output of StrategicMergePatch to the metadata file, resulting in the formatting/indentation being lost (it's all just one unorganized line). With these changes the StrategicMergePatch output is re-encoded via the serializer to preserve the runtime.Object structure and indentation on write.

cc @luxas

@twelho twelho added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/enhancement Categorizes issue or PR as related to improving an existing feature. labels Aug 14, 2019
@twelho twelho added this to the v0.5.1 milestone Aug 14, 2019
@twelho twelho self-assigned this Aug 14, 2019
@twelho
Copy link
Contributor Author

twelho commented Aug 14, 2019

@luxas is out of office, so going ahead and merging now that CI is green.

@twelho twelho merged commit f351c69 into weaveworks:master Aug 14, 2019
@twelho twelho deleted the ignite-spawn-formatting branch August 29, 2020 09:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/enhancement Categorizes issue or PR as related to improving an existing feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant