fix volume sub_path for init containers

Change-Id: I43ed3ac96220a6af44ec08e1689a131d746b10b9
This commit is contained in:
Jakub Pavlik 2016-10-20 16:01:27 +02:00
parent cefe0b2bfc
commit fc2ccca639
1 changed files with 4 additions and 1 deletions

View File

@ -32,6 +32,9 @@ spec:
"volumeMounts": [
{
"name": "{{ volume.name }}",
{%- if volume.sub_path is defined %}
"subPath": "{{ volume.sub_path }}",
{%- endif %}
"mountPath": "{{ volume.mount }}"
}
]
@ -161,4 +164,4 @@ spec:
{%- if service.image_pull_secretes is defined %}
imagePullSecrets:
- name: {{ service.image_pull_secretes }}
{%- endif %}
{%- endif %}