Skip to content

Commit

Permalink
feat(2638): added condition on configmap for no-vault approach
Browse files Browse the repository at this point in the history
Signed-off-by: alvaro.picazo.haase <[email protected]>
  • Loading branch information
alvaropicazo committed Dec 10, 2024
1 parent 6237e1a commit 84e63f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ spec:
volumeMounts:
- name: generated-config
mountPath: /generated-config
{{- if eq .Values.global.vault.type "hashicorp" }}
- name: scripts-volume
mountPath: /scripts/bevel-vault.sh
subPath: bevel-vault.sh
{{- end }}
env:
- name: VAULT_ADDR
value: "{{ .Values.global.vault.address }}"
Expand Down Expand Up @@ -257,7 +259,9 @@ spec:
volumes:
- name: generated-config
emptyDir: {}
{{- if eq .Values.global.vault.type "hashicorp" }}
- name: scripts-volume
configMap:
name: bevel-vault-script
defaultMode: 0777
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -214,5 +214,7 @@ spec:
volumes:
- name: scripts-volume
configMap:
{{- if eq .Values.global.vault.type "hashicorp" }}
name: bevel-vault-script
defaultMode: 0777
defaultMode: 0777
{{- end }}

0 comments on commit 84e63f5

Please sign in to comment.