Closed tomwilkie closed 4 years ago
(cc @sdboyer and @sh0rez)
There are some conflicts here :)
I'm wondering, should we do this with native functions? This tool being written in Go, we could parse the YAML in Go and then output the data as JSON to forward this to jsonnet, keeping jsonnet pretty much as is.
@metalmatze this PR pretty much does that. It's hard to see as nothing is rebased yet, but it pulls in the native functions Tanka has: https://tanka.dev/jsonnet/native
parseYaml
is defined here: https://github.com/grafana/tanka/blob/master/pkg/jsonnet/native/funcs.go#L52
(Builds on https://github.com/monitoring-mixins/mixtool/pull/12)