mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-10 02:47:38 -02:30
Add arch and version to the downloaded binary name (#10122)
Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
- name: Copy crun binary from download dir
|
- name: Copy crun binary from download dir
|
||||||
copy:
|
copy:
|
||||||
src: "{{ local_release_dir }}/crun"
|
src: "{{ downloads.crun.dest }}"
|
||||||
dest: "{{ bin_dir }}/crun"
|
dest: "{{ bin_dir }}/crun"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
remote_src: true
|
remote_src: true
|
||||||
|
|||||||
@@ -11,10 +11,10 @@
|
|||||||
|
|
||||||
- name: gVisor | Copy binaries
|
- name: gVisor | Copy binaries
|
||||||
copy:
|
copy:
|
||||||
src: "{{ local_release_dir }}/gvisor-{{ item }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ bin_dir }}/{{ item }}"
|
dest: "{{ bin_dir }}/{{ item.dest }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
with_items:
|
with_items:
|
||||||
- runsc
|
- { src: "{{ downloads.gvisor_runsc.dest }}", dest: "runsc" }
|
||||||
- containerd-shim-runsc-v1
|
- { src: "{{ downloads.gvisor_containerd_shim.dest }}", dest: "containerd-shim-runsc-v1" }
|
||||||
|
|||||||
@@ -1250,7 +1250,7 @@ downloads:
|
|||||||
file: true
|
file: true
|
||||||
enabled: "{{ crun_enabled }}"
|
enabled: "{{ crun_enabled }}"
|
||||||
version: "{{ crun_version }}"
|
version: "{{ crun_version }}"
|
||||||
dest: "{{ local_release_dir }}/crun"
|
dest: "{{ local_release_dir }}/crun-{{ crun_version }}-{{ image_arch }}"
|
||||||
sha256: "{{ crun_binary_checksum }}"
|
sha256: "{{ crun_binary_checksum }}"
|
||||||
url: "{{ crun_download_url }}"
|
url: "{{ crun_download_url }}"
|
||||||
unarchive: false
|
unarchive: false
|
||||||
@@ -1276,7 +1276,7 @@ downloads:
|
|||||||
file: true
|
file: true
|
||||||
enabled: "{{ container_manager == 'containerd' }}"
|
enabled: "{{ container_manager == 'containerd' }}"
|
||||||
version: "{{ runc_version }}"
|
version: "{{ runc_version }}"
|
||||||
dest: "{{ local_release_dir }}/runc"
|
dest: "{{ local_release_dir }}/runc-{{ runc_version }}.{{ image_arch }}"
|
||||||
sha256: "{{ runc_binary_checksum }}"
|
sha256: "{{ runc_binary_checksum }}"
|
||||||
url: "{{ runc_download_url }}"
|
url: "{{ runc_download_url }}"
|
||||||
unarchive: false
|
unarchive: false
|
||||||
@@ -1315,7 +1315,7 @@ downloads:
|
|||||||
enabled: "{{ gvisor_enabled }}"
|
enabled: "{{ gvisor_enabled }}"
|
||||||
file: true
|
file: true
|
||||||
version: "{{ gvisor_version }}"
|
version: "{{ gvisor_version }}"
|
||||||
dest: "{{ local_release_dir }}/gvisor-runsc"
|
dest: "{{ local_release_dir }}/gvisor-runsc-{{ gvisor_version }}-{{ ansible_architecture }}"
|
||||||
sha256: "{{ gvisor_runsc_binary_checksum }}"
|
sha256: "{{ gvisor_runsc_binary_checksum }}"
|
||||||
url: "{{ gvisor_runsc_download_url }}"
|
url: "{{ gvisor_runsc_download_url }}"
|
||||||
unarchive: false
|
unarchive: false
|
||||||
@@ -1328,7 +1328,7 @@ downloads:
|
|||||||
enabled: "{{ gvisor_enabled }}"
|
enabled: "{{ gvisor_enabled }}"
|
||||||
file: true
|
file: true
|
||||||
version: "{{ gvisor_version }}"
|
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 }}"
|
sha256: "{{ gvisor_containerd_shim_binary_checksum }}"
|
||||||
url: "{{ gvisor_containerd_shim_runsc_download_url }}"
|
url: "{{ gvisor_containerd_shim_runsc_download_url }}"
|
||||||
unarchive: false
|
unarchive: false
|
||||||
@@ -1354,7 +1354,7 @@ downloads:
|
|||||||
file: true
|
file: true
|
||||||
enabled: "{{ container_manager == 'crio' }}"
|
enabled: "{{ container_manager == 'crio' }}"
|
||||||
version: "{{ skopeo_version }}"
|
version: "{{ skopeo_version }}"
|
||||||
dest: "{{ local_release_dir }}/skopeo"
|
dest: "{{ local_release_dir }}/skopeo-{{ skopeo_version }}-{{ image_arch }}"
|
||||||
sha256: "{{ skopeo_binary_checksum }}"
|
sha256: "{{ skopeo_binary_checksum }}"
|
||||||
url: "{{ skopeo_download_url }}"
|
url: "{{ skopeo_download_url }}"
|
||||||
unarchive: false
|
unarchive: false
|
||||||
@@ -1430,7 +1430,7 @@ downloads:
|
|||||||
enabled: "{{ kube_network_plugin == 'cilium' or cilium_deploy_additionally | default(false) | bool }}"
|
enabled: "{{ kube_network_plugin == 'cilium' or cilium_deploy_additionally | default(false) | bool }}"
|
||||||
file: true
|
file: true
|
||||||
version: "{{ cilium_cli_version }}"
|
version: "{{ cilium_cli_version }}"
|
||||||
dest: "{{ local_release_dir }}/cilium"
|
dest: "{{ local_release_dir }}/cilium-{{ cilium_cli_version }}-{{ image_arch }}"
|
||||||
sha256: "{{ ciliumcli_binary_checksum }}"
|
sha256: "{{ ciliumcli_binary_checksum }}"
|
||||||
url: "{{ ciliumcli_download_url }}"
|
url: "{{ ciliumcli_download_url }}"
|
||||||
unarchive: true
|
unarchive: true
|
||||||
@@ -1470,7 +1470,7 @@ downloads:
|
|||||||
enabled: "{{ kube_network_plugin == 'calico' }}"
|
enabled: "{{ kube_network_plugin == 'calico' }}"
|
||||||
file: true
|
file: true
|
||||||
version: "{{ calico_ctl_version }}"
|
version: "{{ calico_ctl_version }}"
|
||||||
dest: "{{ local_release_dir }}/calicoctl"
|
dest: "{{ local_release_dir }}/calicoctl-{{ calico_ctl_version }}-{{ image_arch }}"
|
||||||
sha256: "{{ calicoctl_binary_checksum }}"
|
sha256: "{{ calicoctl_binary_checksum }}"
|
||||||
url: "{{ calicoctl_download_url }}"
|
url: "{{ calicoctl_download_url }}"
|
||||||
mirrors:
|
mirrors:
|
||||||
@@ -1888,7 +1888,7 @@ downloads:
|
|||||||
enabled: "{{ argocd_enabled }}"
|
enabled: "{{ argocd_enabled }}"
|
||||||
file: true
|
file: true
|
||||||
version: "{{ yq_version }}"
|
version: "{{ yq_version }}"
|
||||||
dest: "{{ local_release_dir }}/yq"
|
dest: "{{ local_release_dir }}/yq-{{ yq_version }}-{{ image_arch }}"
|
||||||
sha256: "{{ yq_binary_checksum|default(None) }}"
|
sha256: "{{ yq_binary_checksum|default(None) }}"
|
||||||
url: "{{ yq_download_url }}"
|
url: "{{ yq_download_url }}"
|
||||||
unarchive: false
|
unarchive: false
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
- name: Kubernetes Apps | Copy yq binary from download dir
|
- name: Kubernetes Apps | Copy yq binary from download dir
|
||||||
synchronize:
|
synchronize:
|
||||||
src: "{{ local_release_dir }}/yq"
|
src: "{{ downloads.yq.dest }}"
|
||||||
dest: "{{ bin_dir }}/yq"
|
dest: "{{ bin_dir }}/yq"
|
||||||
compress: no
|
compress: no
|
||||||
perms: yes
|
perms: yes
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
- name: Calico | Copy calicoctl binary from download dir
|
- name: Calico | Copy calicoctl binary from download dir
|
||||||
copy:
|
copy:
|
||||||
src: "{{ local_release_dir }}/calicoctl"
|
src: "{{ downloads.calicoctl.dest }}"
|
||||||
dest: "{{ bin_dir }}/calicoctl"
|
dest: "{{ bin_dir }}/calicoctl"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
|
|||||||
@@ -91,7 +91,7 @@
|
|||||||
|
|
||||||
- name: Cilium | Copy Ciliumcli binary from download dir
|
- name: Cilium | Copy Ciliumcli binary from download dir
|
||||||
copy:
|
copy:
|
||||||
src: "{{ local_release_dir }}/cilium"
|
src: "{{ downloads.ciliumcli.dest }}"
|
||||||
dest: "{{ bin_dir }}/cilium"
|
dest: "{{ bin_dir }}/cilium"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
|
|||||||
Reference in New Issue
Block a user