Flux: Delete all yaml-modifying code

Created on 22 Mar 2018  路  5Comments  路  Source: fluxcd/flux

We have the requirement that modifying yaml belonging to the user must preserve their comments, since the output may still be read by humans. There is no existing library for Go which supports this behaviour, and as a result we manipulate yaml with a collection of regular expressions in cluster/kubernetes/update.go and cluster/kubernetes/policies.go.

This code is difficult to maintain, changes to it are difficult to review, and it's difficult to be sure it does the right thing for all possible inputs.

We should delete it all and offload the yaml-modification to kubeyaml, as is being done in #976.

enhancement refactor

Most helpful comment

Awesome!

All 5 comments

As of #976 being merged, we don't modify YAMLs from the go code any more.

Awesome!

No help wanted labels in sight

No help wanted labels in sight

Magic labeling machine waved!

Was this page helpful?
0 / 5 - 0 ratings