Browse Source

see #13: remove workaround for the subPath bug

master
Nicolas Massé 8 years ago
parent
commit
c529739367
  1. 18
      roles/3scale/tasks/main.yml

18
roles/3scale/tasks/main.yml

@ -41,24 +41,6 @@
{% endfor -%} {% endfor -%}
{{ template }} {{ template }}
- name: Patch the template to workaround the subPath bug (https://bugzilla.redhat.com/show_bug.cgi?id=1481617)
set_fact:
template: >-
{% for obj in template.objects -%}
{% if obj.kind == 'DeploymentConfig' -%}
{% for c in obj.spec.template.spec.containers -%}
{% if 'volumeMounts' in c -%}
{% for m in c.volumeMounts -%}
{% if 'subPath' in m -%}
{% if m.update({'subPath': ('..data/' ~ m.subPath) }) -%}{% endif -%}
{% endif -%}
{% endfor -%}
{% endif -%}
{% endfor -%}
{% endif -%}
{% endfor -%}
{{ template }}
- name: Create a temporary directory - name: Create a temporary directory
tempfile: state=directory tempfile: state=directory
register: tempfile register: tempfile

Loading…
Cancel
Save