fix volume sub_path for init containers
Change-Id: I43ed3ac96220a6af44ec08e1689a131d746b10b9
This commit is contained in:
parent
cefe0b2bfc
commit
fc2ccca639
|
@ -32,6 +32,9 @@ spec:
|
||||||
"volumeMounts": [
|
"volumeMounts": [
|
||||||
{
|
{
|
||||||
"name": "{{ volume.name }}",
|
"name": "{{ volume.name }}",
|
||||||
|
{%- if volume.sub_path is defined %}
|
||||||
|
"subPath": "{{ volume.sub_path }}",
|
||||||
|
{%- endif %}
|
||||||
"mountPath": "{{ volume.mount }}"
|
"mountPath": "{{ volume.mount }}"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -161,4 +164,4 @@ spec:
|
||||||
{%- if service.image_pull_secretes is defined %}
|
{%- if service.image_pull_secretes is defined %}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: {{ service.image_pull_secretes }}
|
- name: {{ service.image_pull_secretes }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
Loading…
Reference in New Issue