ansible-collections / community.kubernetes

Kubernetes Collection for Ansible
https://galaxy.ansible.com/community/kubernetes
GNU General Public License v3.0
265 stars 104 forks source link

Add to new template parameter test case - template file with multiple resource definitions #243

Closed geerlingguy closed 4 years ago

geerlingguy commented 4 years ago
SUMMARY

After https://github.com/ansible-collections/community.kubernetes/pull/230 was merged, I wondered if multiple YAML documents, e.g.:

---
resource_one_here:

---
resource_two_here:

Would be parsed and applied correctly, without the additional use of something like from_yaml_all in the definition parameter.

Maybe to make sure this behavior continues working in the future (assuming it works now), we could include two resources in one of the j2 files, e.g. add a Service to the molecule/default/templates/pod_template_two.j2 file.

ISSUE TYPE
COMPONENT NAME

k8s / template

ADDITIONAL INFORMATION

N/A

geerlingguy commented 4 years ago

cc @tima, @Akasurde

Akasurde commented 4 years ago

resolved_by_pr #245