From c529739367e32cea8eb7cd875b98cf9df209ee0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Wed, 25 Oct 2017 11:21:55 +0200 Subject: [PATCH] see #13: remove workaround for the subPath bug --- roles/3scale/tasks/main.yml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/roles/3scale/tasks/main.yml b/roles/3scale/tasks/main.yml index a8781d6..d77b4a1 100644 --- a/roles/3scale/tasks/main.yml +++ b/roles/3scale/tasks/main.yml @@ -41,24 +41,6 @@ {% endfor -%} {{ 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 tempfile: state=directory register: tempfile