fix volume sub_path for init containers
Change-Id: I43ed3ac96220a6af44ec08e1689a131d746b10b9
diff --git a/kubernetes/files/rc.yml b/kubernetes/files/rc.yml
index 89b4675..e83a9a0 100644
--- a/kubernetes/files/rc.yml
+++ b/kubernetes/files/rc.yml
@@ -32,6 +32,9 @@
"volumeMounts": [
{
"name": "{{ volume.name }}",
+ {%- if volume.sub_path is defined %}
+ "subPath": "{{ volume.sub_path }}",
+ {%- endif %}
"mountPath": "{{ volume.mount }}"
}
]
@@ -161,4 +164,4 @@
{%- if service.image_pull_secretes is defined %}
imagePullSecrets:
- name: {{ service.image_pull_secretes }}
- {%- endif %}
\ No newline at end of file
+ {%- endif %}