Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

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

Closed
geerlingguy opened this issue Sep 29, 2020 · 2 comments · Fixed by #245
Assignees

Comments

@geerlingguy
Copy link
Collaborator

SUMMARY

After #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
  • Feature Idea
COMPONENT NAME

k8s / template

ADDITIONAL INFORMATION

N/A

@geerlingguy
Copy link
Collaborator Author

cc @tima, @Akasurde

Akasurde added a commit to Akasurde/community.kubernetes that referenced this issue Oct 1, 2020
User can combine multiple resources in the given template
file, which can be consumed by k8s module to create multiple
resources at once.

Fixes: ansible-collections#243

Signed-off-by: Abhijeet Kasurde <[email protected]>
@Akasurde
Copy link
Member

Akasurde commented Oct 1, 2020

resolved_by_pr #245

geerlingguy pushed a commit that referenced this issue Oct 1, 2020
User can combine multiple resources in the given template
file, which can be consumed by k8s module to create multiple
resources at once.

Fixes: #243

Signed-off-by: Abhijeet Kasurde <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants