feat: add vault
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
50d85ed383
commit
0d14152edf
@ -26,13 +26,13 @@ spec:
|
|||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{service_name}}-config
|
name: {{service_name}}-config
|
||||||
{%- if vars.vault_secret is defined and (vars.vault_secret.secrets | length) > 0 %}
|
{%- if vars.vault_secret.has_values %}
|
||||||
env:
|
env:
|
||||||
{%- for secret in vars.vault_secret.secrets %}
|
{%- for secret in vars.vault_secret.secrets %}
|
||||||
- name: {{secret | upper | replace(".", "_") | replace("-", "_") }}
|
- name: {{secret | upper | replace(".", "_") | replace("-", "_") }}
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ service_name }}-{{ vars.vault_secret.name }}
|
name: {{ vars.vault_secret.file_name(service_name) }}
|
||||||
key: {{ secret }}
|
key: {{ secret }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user