Files
argo-cd/examples/plugins/helm/get-parameters.sh
2023-10-31 21:47:06 -04:00

9 lines
236 B
Bash
Executable File

#!/bin/sh
yq e -o=json values.yaml | jq '[{
name: "helm-parameters",
title: "Helm Parameters",
collectionType: "map",
map: [leaf_paths as $path | {"key": $path | join("."), "value": getpath($path)|tostring}] | from_entries
}]'