finch icon indicating copy to clipboard operation
finch copied to clipboard

Support comments in the Finch configuration file finch.yaml

Open ollypom opened this issue 2 years ago • 1 comments
trafficstars

What is the problem you're trying to solve?. I would like to use comments in the Finch configuration file finch.yaml.

I often find myself commenting something out while testing a feature, or using comments to annotate why a key was set. However on a finch vm stop / finch vm start all commented out lines are removed, meaning I have to go back through and find the syntax again.

Describe the feature you'd like

cpus: 3
memory: 4GiB
# Configured the overlay snapshotter for Finch
snapshotters:
    - overlayfs
# creds_helpers:
#     - ecr-login

Additional context Add any other context or screenshots about the feature request here.

ollypom avatar Oct 25 '23 12:10 ollypom

This is a long running issue with the YAML library we use: https://github.com/go-yaml/yaml/issues/709. The easy fix we could make for this is to not write default values to disk, which is why we currently parse / re-write the file in the first place. Not sure if the tradeoff is worth it?

pendo324 avatar Oct 30 '23 23:10 pendo324