Skip to content

Commit

Permalink
[calico] account for path changes in calico 3.21.4 crd archive and above
Browse files Browse the repository at this point in the history
  • Loading branch information
cristicalin committed Feb 15, 2022
1 parent d1a2082 commit e0fb051
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion roles/network_plugin/calico/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,16 @@
- enable_dual_stack_networks

- block:
- name: Calico | Check if extra directory is needed
stat:
path: "{{ local_release_dir }}/calico-{{ calico_version }}-kdd-crds/kdd"
register: kdd_path
- name: Calico | Set kdd path
set_fact:
calico_kdd_path: "{{ local_release_dir }}/calico-{{ calico_version }}-kdd-crds{{ '/kdd' if kdd_path.stat.exists is defined and kdd_path.stat.exists }}"
- name: Calico | Create calico manifests for kdd
assemble:
src: "{{ local_release_dir }}/calico-{{ calico_version }}-kdd-crds"
src: "{{ calico_kdd_path }}"
dest: "{{ kube_config_dir }}/kdd-crds.yml"
mode: 0644
delimiter: "---\n"
Expand Down

0 comments on commit e0fb051

Please sign in to comment.