This commit is contained in:
ari committed 2023-03-16 16:43:34 +00:00
1 parent 9fb3f8f88f
commit 6b0f788262
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -6,7 +6,8 @@ deployment=${2:-dev}
app=$(basename $full_path)
location=$(dirname $full_path)
tmp_path=".tmp/$location/$deployment-$app.yaml"
argocd_values_path=$(realpath k8s/argocd/values-$deployment.yaml)
argocd_values_path=$(realpath k8s/argocd/values.yaml)
argocd_values_deployment_path=$(realpath k8s/argocd/values-$deployment.yaml)
echo "> writing $location/$app to $tmp_path"
echo "> using argo values of $argocd_values_path"
cat $argocd_values_path | yq
@@ -19,6 +20,7 @@ popd &> /dev/null
helm template $app $full_path --namespace $app \
--debug \
--values $argocd_values_path \
--values $argocd_values_deployment_path \
--values $full_path/values.yaml \
--values $full_path/values-$deployment.yaml \
> $tmp_path
@@ -33,7 +33,7 @@ spec:
secretName: "tls-{{$prefix}}.{{$.Values.global.domain}}"
issuerRef:
kind: Issuer
name: {{ .Values.global.tls.issuer }}
name: "{{ $.Values.global.tls.issuer }}"
commonName: "{{$prefix}}.{{$.Values.global.domain}}"
dnsNames:
- "{{$prefix}}.{{$.Values.global.domain}}"