From e12864840443df28347d09b0921c1329a9452259 Mon Sep 17 00:00:00 2001 From: Cyber MacGeddon Date: Sat, 7 Sep 2024 18:15:51 +0100 Subject: [PATCH] Add a line to the Makefile to make K8s output, although not usable yet --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index f361bd80..5fd5cc9b 100644 --- a/Makefile +++ b/Makefile @@ -69,3 +69,10 @@ update-templates: set-version --ext-str options=$${cm} -S $${input} > $${output}; \ done; \ done + +config.yaml: config.json FORCE + jsonnet -J . -J templates/ templates/config-to-k8s.jsonnet | \ + python3 -c 'import sys, yaml, json; j=json.loads(sys.stdin.read()); print(yaml.safe_dump(j))' > $@ + +FORCE: +