Replace calico-cni binaries with calico/cni container

Calico CNI binaries are also released/shipped in calico/cni
container. This patch replaces download of calico CNI binaries with
calico/cni container.
This commit is contained in:
Aleksandr Didenko
2016-11-10 11:57:06 +01:00
parent f6233ffc9a
commit 965a1234d3
3 changed files with 8 additions and 33 deletions

View File

@@ -1,9 +1,7 @@
---
dependencies:
- role: download
file: "{{ downloads.calico_cni_plugin }}"
- role: download
file: "{{ downloads.calico_cni_plugin_ipam }}"
file: "{{ downloads.calico_cni }}"
- role: download
file: "{{ downloads.calico_node }}"
- role: download

View File

@@ -48,13 +48,12 @@
delay: "{{ retry_stagger | random + 3 }}"
changed_when: false
- name: Calico | Install calico cni bin
command: rsync -pi "{{ local_release_dir }}/calico/bin/calico" "/opt/cni/bin/calico"
changed_when: false
when: "{{ overwrite_hyperkube_cni|bool }}"
- name: Calico | Install calico-ipam cni bin
command: rsync -pi "{{ local_release_dir }}/calico/bin/calico-ipam" "/opt/cni/bin/calico-ipam"
- name: Calico | Copy cni plugins from calico/cni container
command: "/usr/bin/docker run --rm -v /opt/cni/bin:/cnibindir {{ calico_cni_image_repo }}:{{ calico_cni_image_tag }} sh -c 'cp -a /opt/cni/bin/* /cnibindir/'"
register: cni_task_result
until: cni_task_result.rc == 0
retries: 4
delay: "{{ retry_stagger | random + 3 }}"
changed_when: false
when: "{{ overwrite_hyperkube_cni|bool }}"