feat: add crdb to config mpa instead
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
9f499a4be7
commit
bd6b19fde6
@ -32,6 +32,10 @@ spec:
|
|||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{service_name}}-config
|
name: {{service_name}}-config
|
||||||
|
{%- if vars.cuddle_crdb.has_values %}
|
||||||
|
- configMapRef:
|
||||||
|
name: {{ vars.cuddle_crdb.file_name(service_name) }}
|
||||||
|
{%- endif %}
|
||||||
{%- if vars.vault_secret.has_values or vars.cuddle_crdb.has_values %}
|
{%- if vars.vault_secret.has_values or vars.cuddle_crdb.has_values %}
|
||||||
env:
|
env:
|
||||||
{%- if vars.vault_secret.has_values %}
|
{%- if vars.vault_secret.has_values %}
|
||||||
@ -43,6 +47,7 @@ spec:
|
|||||||
key: {{ secret }}
|
key: {{ secret }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
{#
|
||||||
{%- if vars.cuddle_crdb.has_values %}
|
{%- if vars.cuddle_crdb.has_values %}
|
||||||
- name: {{vars.cuddle_crdb.env }}
|
- name: {{vars.cuddle_crdb.env }}
|
||||||
valueFrom:
|
valueFrom:
|
||||||
@ -50,6 +55,7 @@ spec:
|
|||||||
name: {{ vars.cuddle_crdb.file_name(service_name) }}
|
name: {{ vars.cuddle_crdb.file_name(service_name) }}
|
||||||
key: {{ vars.cuddle_crdb.env }}
|
key: {{ vars.cuddle_crdb.env }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
#}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- containerPort: 3000
|
||||||
|
Loading…
Reference in New Issue
Block a user