download run once feature for containerd (#6997)

This commit is contained in:
Sergey
2020-12-07 12:09:25 +03:00
committed by GitHub
parent 878fe80ca3
commit a69f2b09da
3 changed files with 6 additions and 4 deletions

View File

@@ -26,9 +26,9 @@
set_fact:
image_save_command: "{{ containerd_bin_dir }}/ctr -n k8s.io image export {{ image_path_final }} {{ image_reponame }}"
image_load_command: "{{ containerd_bin_dir }}/ctr -n k8s.io image import --base-name {{ download.repo }} {{ image_path_final }}"
when: container_manager in ['crio' ,'containerd']
when: container_manager == 'containerd'
- name: Set image save/load command for containerd and crio on localhost
set_fact:
image_save_command_on_localhost: "{{ containerd_bin_dir }}/ctr -n k8s.io image export {{ image_path_cached }} {{ image_reponame }}"
when: container_manager_on_localhost in ['crio' ,'containerd']
when: container_manager_on_localhost == 'containerd'