openshift/openshift-restclient-python

Dynamic Client should handle Lists

Closed this issue · 1 comments

gtema commented

It would be also helpful, when single template contain list with API objects: http://paste.openstack.org/show/725140/
It would let you avoid structure like:

- name: "Set general configs and secrets state={{ state }}"
  k8s:
    state: '{{ state }}'
    definition: "{{ item }}"
  with_items:
    - "{{ lookup('template', 'common_config.yaml') | from_yaml }}"
    - "{{ lookup('template', 'zuul_config.yaml') | from_yaml }}"
    - "{{ lookup('template', 'nodepool_config.yaml') | from_yaml }}"