Preserve comments in KFDef files (needed to for kpt)
Currently the kfctl code reads and writes the KFdef files. This serialization ends up stripping out any comments in the original KFDef files. This means we can't use kpt setters with KFDef files.
It looks like kpt is using this library for YAML parsing. https://github.com/kubernetes-sigs/kustomize/tree/master/kyaml/yaml
So its possible if we switched to using that library, kfctl could preserve comments.
Issue-Label Bot is automatically applying the labels:
| Label | Probability |
|---|---|
| kind/feature | 0.71 |
| area/kfctl | 0.97 |
Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback! Links: app homepage, dashboard and code for this bot.
Looks like the kio library is the one that provides high level routines. https://github.com/kubernetes-sigs/kustomize/blob/master/kyaml/kio/doc.go
I think google has already migrated to kpt instead, so this issue should be closed