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:
enabled: true
container: true
repo: "{{ item.split(':')[0] }}"
tag: "{{ item.split(':')[1] }}"
repo: "{{ item | regex_replace('^(.*):.*$','\\1') }}"
tag: "{{ item | regex_replace('^.*:(.*)$','\\1') }}"
groups: k8s-cluster
loop: "{{ kubeadm_images_list | flatten(levels=1) }}"
register: kubeadm_images_cooked