Update createServiceAccount.sh
All checks were successful
Build docker container / Build image (push) Successful in 16s

This commit is contained in:
ties 2024-08-29 14:55:47 +00:00
parent 7a5b693867
commit c39ca0acf7

View File

@ -4,7 +4,7 @@ NAMESPACE=$(yq e '.namespace' values.yaml)
SA_NAME="${NAMESPACE}-cicd" SA_NAME="${NAMESPACE}-cicd"
helm dependency build . helm dependency build .
HELM_OUTPUT=$(helm template -g --set-json="subchartData=$(yq '.dependencies[0]' Chart.yaml -ojson | jq -rc)" .) HELM_OUTPUT=$(helm template -g --set-json="chart_template.subchartData=$(yq '.dependencies[] | select(.condition == "subchart")' Chart.yaml -ojson | jq -rc)" .)
resources=$(echo "$HELM_OUTPUT" | yq -o=json | jq -rc '{apiVersion, kind}' | sort | uniq) resources=$(echo "$HELM_OUTPUT" | yq -o=json | jq -rc '{apiVersion, kind}' | sort | uniq)