fix init-containers without volumes
Change-Id: Iffe9a0eeb439dda15968b5162b6aa3db0807a27a
diff --git a/kubernetes/files/rc.yml b/kubernetes/files/rc.yml
index 58105b0..04f737d 100644
--- a/kubernetes/files/rc.yml
+++ b/kubernetes/files/rc.yml
@@ -22,8 +22,9 @@
{
"name": "{{ container.name }}",
"image": "{% if container.registry is defined %}{{ container.registry }}/{%- endif %}{{ container.image }}{%- if container.tag is defined %}:{{ container.tag }}{%- endif %}",
- "command": [{%- for command in container.command %}"{{ command }}"{% if not loop.last %},{% endif %}{%- endfor %}],
- {%- if container.volumes is defined %}
+ "command": [{%- for command in container.command %}"{{ command }}"{% if not loop.last %},{% endif %}{%- endfor %}]
+ {%- if container.volumes is defined -%}
+ ,
{%- for volume in container.volumes %}
"volumeMounts": [
{