Skip to content

Commit

Permalink
Merge pull request #2639 from alvaropicazo/feat-2638_fix_configmap_co…
Browse files Browse the repository at this point in the history
…nditions

feat(2638): added conditions for no-vault approach
  • Loading branch information
suvajit-sarkar authored Dec 10, 2024
2 parents 6237e1a + 84e63f5 commit 99e2675
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 99e2675

Please sign in to comment.