chore(cli): template newly create variables

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
rjshrjndrn 2024-09-03 17:08:44 +02:00
parent 1767918a8c
commit c179b4f9b9

View file

@ -382,6 +382,7 @@ function upgrade() {
or_new_version=$(awk '/fromVersion/{print $2}' <"vars.yaml")
yq '(load("old_vars.yaml") | .. | select(tag != "!!map" and tag != "!!seq")) as $i ireduce(.; setpath($i | path; $i))' vars.yaml >new_vars.yaml
mv new_vars.yaml vars.yaml
templater -i vars.yaml -o vars.yaml
or_helm_upgrade
# Update the version