fix parsing refresh of kubeadm cert key (#4971)

* fix parsing refresh of kubeadm cert key

Change-Id: I4de2a1df6498790a80351b4bc7d88e6c9e470358

* Update kubeadm-secondary-experimental.yml
pull/4977/head
Matthew Mosesohn 2019-07-15 10:45:06 +03:00 committed by Kubernetes Prow Robot
parent 76640cf1a1
commit b15b6e834f
1 changed files with 4 additions and 2 deletions

View File

@ -30,8 +30,10 @@
- name: Parse certificate key if not set - name: Parse certificate key if not set
set_fact: set_fact:
kubeadm_certificate_key: "{{ hostvars[groups['kube-master'][0]]['kubeadm_upload_cert'].stdout_lines[-1] | trim }}" 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 - name: Create kubeadm ControlPlane config
template: template: