Skip to content

Commit

Permalink
[kustomize_deploy] Include symlinks when user kustomize dir is set
Browse files Browse the repository at this point in the history
With this patch, not only regular files but also symlinks are taken into
account.
  • Loading branch information
eduolivares authored and openshift-merge-bot[bot] committed Nov 19, 2024
1 parent f76cdd7 commit f31aef1
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,22 @@
paths: "{{ cifmw_architecture_user_kustomize_base_dir }}"
patterns: "*.yml,*.yaml"
recurse: true
file_type: "{{ item }}"
register: _cifmw_kustomize_deploy_yaml_patches_find
loop:
- file
- link
delegate_to: localhost

- name: Fetch the content of the kustomize patches
ansible.builtin.slurp:
path: "{{ item.path }}"
register: _cifmw_kustomize_deploy_yaml_patches_slurp
loop: "{{ _cifmw_kustomize_deploy_yaml_patches_find.files | default([]) }}"
loop: >-
{{
_cifmw_kustomize_deploy_yaml_patches_find.results | default([]) |
map(attribute='files') | flatten
}}
delegate_to: localhost
loop_control:
label: "{{ item.path | ansible.builtin.relpath(cifmw_architecture_user_kustomize_base_dir) }}"
Expand Down

0 comments on commit f31aef1

Please sign in to comment.