Skip to content

Commit ecd295b

Browse files
committed
reorder
1 parent 2296662 commit ecd295b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

charts/gitops-runtime/templates/hooks/pre-uninstall/delete-runtime-from-platform.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ spec:
3131
- name: SSL_CERT_FILE
3232
value: /app/config/codefresh-tls-certs/{{ $customCASecretKey }}
3333
{{- end }}
34-
{{- if $customCASecretName }}
34+
{{- $extraVolumeMounts := include "codefresh-gitops-runtime.app-proxy.init.extra-volume-mounts" . | fromYaml }}
35+
{{- if $extraVolumeMounts.extraVolumeMounts }}
3536
volumeMounts:
3637
- mountPath: /app/config/codefresh-tls-certs
3738
name: codefresh-tls-certs
@@ -46,7 +47,8 @@ spec:
4647
echo "User token unavailable, unable to remove runtime ${RUNTIME_NAME} from platform, please remove it from UI"
4748
exit 1
4849
fi
49-
{{- if $customCASecretName }}
50+
{{- $extraVolumes := include "codefresh-gitops-runtime.app-proxy.extra-volumes" . | fromYaml }}
51+
{{- if $extraVolumes.extraVolumes }}
5052
volumes:
5153
- name: codefresh-tls-certs
5254
secret:

0 commit comments

Comments
 (0)