fix parsing refresh of kubeadm cert key (#4971)

* fix parsing refresh of kubeadm cert key

Change-Id: I4de2a1df6498790a80351b4bc7d88e6c9e470358

* Update kubeadm-secondary-experimental.yml
This commit is contained in:
Matthew Mosesohn 2019-07-15 10:45:06 +03:00 committed by Kubernetes Prow Robot
parent 76640cf1a1
commit b15b6e834f

View file

@ -30,8 +30,10 @@
- name: Parse certificate key if not set
set_fact:
kubeadm_certificate_key: "{{ hostvars[groups['kube-master'][0]]['kubeadm_upload_cert'].stdout_lines[-1] | trim }}"
when: kubeadm_certificate_key is undefined
run_once: yes
when:
- hostvars[groups['kube-master'][0]]['kubeadm_upload_cert'] is defined
- hostvars[groups['kube-master'][0]]['kubeadm_upload_cert'] is not skipped
- name: Create kubeadm ControlPlane config
template: