Revert "Optimize kube resources creation (#4572)" (#4621)

This reverts commit f8fdc0cd93.
This commit is contained in:
Maxime Guyot
2019-04-23 19:37:23 +02:00
committed by Matthew Mosesohn
parent 64f48bf84c
commit 50751bb610
22 changed files with 118 additions and 31 deletions

View File

@@ -10,8 +10,11 @@
- name: Kubernetes Apps | Set GlusterFS endpoint and PV
kube:
name: glusterfs
namespace: default
kubectl: "{{bin_dir}}/kubectl"
filename: "{{ gluster_pv.results | map(attribute='item') | map(attribute='file') | map('regex_replace', '^(.*)$', kube_config_dir+'/\\1') | list }}"
resource: "{{item.item.type}}"
filename: "{{kube_config_dir}}/{{item.item.dest}}"
state: "{{item.changed | ternary('latest','present') }}"
with_items: "{{ gluster_pv.results }}"
when: inventory_hostname == groups['kube-master'][0] and groups['gfs-cluster'] is defined