Browse Source

Add arch and version to the downloaded binary name (#10122)

Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
pull/10128/head
ERIK 1 year ago
committed by GitHub
parent
commit
75e00420ec
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 16 deletions
  1. 2
      roles/container-engine/crun/tasks/main.yml
  2. 8
      roles/container-engine/gvisor/tasks/main.yml
  3. 16
      roles/download/defaults/main.yml
  4. 2
      roles/kubernetes-apps/argocd/tasks/main.yml
  5. 2
      roles/network_plugin/calico/tasks/install.yml
  6. 2
      roles/network_plugin/cilium/tasks/install.yml

2
roles/container-engine/crun/tasks/main.yml

@ -6,7 +6,7 @@
- name: Copy crun binary from download dir
copy:
src: "{{ local_release_dir }}/crun"
src: "{{ downloads.crun.dest }}"
dest: "{{ bin_dir }}/crun"
mode: 0755
remote_src: true

8
roles/container-engine/gvisor/tasks/main.yml

@ -11,10 +11,10 @@
- name: gVisor | Copy binaries
copy:
src: "{{ local_release_dir }}/gvisor-{{ item }}"
dest: "{{ bin_dir }}/{{ item }}"
src: "{{ item.src }}"
dest: "{{ bin_dir }}/{{ item.dest }}"
mode: 0755
remote_src: yes
with_items:
- runsc
- containerd-shim-runsc-v1
- { src: "{{ downloads.gvisor_runsc.dest }}", dest: "runsc" }
- { src: "{{ downloads.gvisor_containerd_shim.dest }}", dest: "containerd-shim-runsc-v1" }

16
roles/download/defaults/main.yml

@ -1250,7 +1250,7 @@ downloads:
file: true
enabled: "{{ crun_enabled }}"
version: "{{ crun_version }}"
dest: "{{ local_release_dir }}/crun"
dest: "{{ local_release_dir }}/crun-{{ crun_version }}-{{ image_arch }}"
sha256: "{{ crun_binary_checksum }}"
url: "{{ crun_download_url }}"
unarchive: false
@ -1276,7 +1276,7 @@ downloads:
file: true
enabled: "{{ container_manager == 'containerd' }}"
version: "{{ runc_version }}"
dest: "{{ local_release_dir }}/runc"
dest: "{{ local_release_dir }}/runc-{{ runc_version }}.{{ image_arch }}"
sha256: "{{ runc_binary_checksum }}"
url: "{{ runc_download_url }}"
unarchive: false
@ -1315,7 +1315,7 @@ downloads:
enabled: "{{ gvisor_enabled }}"
file: true
version: "{{ gvisor_version }}"
dest: "{{ local_release_dir }}/gvisor-runsc"
dest: "{{ local_release_dir }}/gvisor-runsc-{{ gvisor_version }}-{{ ansible_architecture }}"
sha256: "{{ gvisor_runsc_binary_checksum }}"
url: "{{ gvisor_runsc_download_url }}"
unarchive: false
@ -1328,7 +1328,7 @@ downloads:
enabled: "{{ gvisor_enabled }}"
file: true
version: "{{ gvisor_version }}"
dest: "{{ local_release_dir }}/gvisor-containerd-shim-runsc-v1"
dest: "{{ local_release_dir }}/gvisor-containerd-shim-runsc-v1-{{ gvisor_version }}-{{ ansible_architecture }}"
sha256: "{{ gvisor_containerd_shim_binary_checksum }}"
url: "{{ gvisor_containerd_shim_runsc_download_url }}"
unarchive: false
@ -1354,7 +1354,7 @@ downloads:
file: true
enabled: "{{ container_manager == 'crio' }}"
version: "{{ skopeo_version }}"
dest: "{{ local_release_dir }}/skopeo"
dest: "{{ local_release_dir }}/skopeo-{{ skopeo_version }}-{{ image_arch }}"
sha256: "{{ skopeo_binary_checksum }}"
url: "{{ skopeo_download_url }}"
unarchive: false
@ -1430,7 +1430,7 @@ downloads:
enabled: "{{ kube_network_plugin == 'cilium' or cilium_deploy_additionally | default(false) | bool }}"
file: true
version: "{{ cilium_cli_version }}"
dest: "{{ local_release_dir }}/cilium"
dest: "{{ local_release_dir }}/cilium-{{ cilium_cli_version }}-{{ image_arch }}"
sha256: "{{ ciliumcli_binary_checksum }}"
url: "{{ ciliumcli_download_url }}"
unarchive: true
@ -1470,7 +1470,7 @@ downloads:
enabled: "{{ kube_network_plugin == 'calico' }}"
file: true
version: "{{ calico_ctl_version }}"
dest: "{{ local_release_dir }}/calicoctl"
dest: "{{ local_release_dir }}/calicoctl-{{ calico_ctl_version }}-{{ image_arch }}"
sha256: "{{ calicoctl_binary_checksum }}"
url: "{{ calicoctl_download_url }}"
mirrors:
@ -1888,7 +1888,7 @@ downloads:
enabled: "{{ argocd_enabled }}"
file: true
version: "{{ yq_version }}"
dest: "{{ local_release_dir }}/yq"
dest: "{{ local_release_dir }}/yq-{{ yq_version }}-{{ image_arch }}"
sha256: "{{ yq_binary_checksum|default(None) }}"
url: "{{ yq_download_url }}"
unarchive: false

2
roles/kubernetes-apps/argocd/tasks/main.yml

@ -6,7 +6,7 @@
- name: Kubernetes Apps | Copy yq binary from download dir
synchronize:
src: "{{ local_release_dir }}/yq"
src: "{{ downloads.yq.dest }}"
dest: "{{ bin_dir }}/yq"
compress: no
perms: yes

2
roles/network_plugin/calico/tasks/install.yml

@ -11,7 +11,7 @@
- name: Calico | Copy calicoctl binary from download dir
copy:
src: "{{ local_release_dir }}/calicoctl"
src: "{{ downloads.calicoctl.dest }}"
dest: "{{ bin_dir }}/calicoctl"
mode: 0755
remote_src: yes

2
roles/network_plugin/cilium/tasks/install.yml

@ -91,7 +91,7 @@
- name: Cilium | Copy Ciliumcli binary from download dir
copy:
src: "{{ local_release_dir }}/cilium"
src: "{{ downloads.ciliumcli.dest }}"
dest: "{{ bin_dir }}/cilium"
mode: 0755
remote_src: yes
Loading…
Cancel
Save