prep_kubeadm_images: parse repo and tag (#4976) (#4977)

This commit is contained in:
Waret 2019-07-15 18:15:09 +08:00 committed by Kubernetes Prow Robot
parent fd9bbcb157
commit 781b5691c9

View file

@ -57,8 +57,8 @@
value: value:
enabled: true enabled: true
container: true container: true
repo: "{{ item.split(':')[0] }}" repo: "{{ item | regex_replace('^(.*):.*$','\\1') }}"
tag: "{{ item.split(':')[1] }}" tag: "{{ item | regex_replace('^.*:(.*)$','\\1') }}"
groups: k8s-cluster groups: k8s-cluster
loop: "{{ kubeadm_images_list | flatten(levels=1) }}" loop: "{{ kubeadm_images_list | flatten(levels=1) }}"
register: kubeadm_images_cooked register: kubeadm_images_cooked