Open RichiCoder1 opened 3 years ago
Related to #144, #126, #137, and potentially #134 if we wanted to allow tweaking yq expressions
Follow up: Could actually probably still get the benefit of multi-doc and selection without yqlib
as we could just check for it ourselves on yaml.Node
As an update, I have observed panics on invalid YAMLs in yaml.v3
in situations where they are templated with {{
as described here.
Hmm. I'll add some panic handling to that method
@RichiCoder1 it isn't too big of a problem because the pod just gets restarted. Feel free to leave as is if you don't want to invest the time because we should have improved parsing soon :)
Random idea I had while thinking about some issues was to subsititute some of the current regex'd logic with some more robust code based on
yaml
andyqlib
.This code supports both multi docs and uses yq for selecting CRD Nodes.
Psuedocode:
Downside is YQ is not a light dependency