Skip to content

Commit

Permalink
skip volumes if c4gh key is read from vault config
Browse files Browse the repository at this point in the history
  • Loading branch information
aaperis committed Dec 14, 2024
1 parent 333d62c commit 40de21c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/sda-svc/templates/download-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@ spec:
resources:
{{ toYaml .Values.download.resources | trim | indent 10 }}
volumeMounts:
{{- if not .Values.global.vaultSecrets }}
{{- if .Values.global.download.serveDecrypted.c4ghKeyFile }}
- name: c4gh-transient
mountPath: {{ template "c4ghPath" . }}
{{- end }}
{{- if not .Values.global.vaultSecrets }}
- name: iss
mountPath: {{ template "trustedIssPath" . }}
{{- end }}
Expand All @@ -257,6 +257,7 @@ spec:
secretName: {{ required "An certificate issuer or a TLS secret name is required for download" .Values.download.tls.secretName }}
{{- end }}
{{- end }}
{{- if not .Values.global.vaultSecrets }}
{{- if .Values.global.download.serveDecrypted.c4ghKeyFile }}
- name: c4gh-transient
secret:
Expand All @@ -266,7 +267,6 @@ spec:
- key: {{ .Values.global.download.serveDecrypted.c4ghKeyFile }}
path: {{ .Values.global.download.serveDecrypted.c4ghKeyFile }}
{{- end }}
{{- if not .Values.global.vaultSecrets }}
- name: iss
secret:
defaultMode: 0440
Expand Down

0 comments on commit 40de21c

Please sign in to comment.