Browse Source

[FIX] fix match because trim removes leading/trailing whitespace (#5356)

pull/5357/head
Michael Shen 5 years ago
committed by Kubernetes Prow Robot
parent
commit
6924c6e5a3
1 changed files with 1 additions and 1 deletions
  1. 2
      roles/kubernetes/master/tasks/kubeadm-setup.yml

2
roles/kubernetes/master/tasks/kubeadm-setup.yml

@ -127,7 +127,7 @@
with_items: "{{ hostvars[groups['kube-master'][0]]['kubeadm_init'].stdout_lines | default([]) }}" with_items: "{{ hostvars[groups['kube-master'][0]]['kubeadm_init'].stdout_lines | default([]) }}"
when: when:
- kubeadm_certificate_key is not defined - kubeadm_certificate_key is not defined
- item | trim | match('.*--certificate-key .*')
- item | trim | match('.*--certificate-key.*')
- name: Create hardcoded kubeadm token for joining nodes with 24h expiration (if defined) - name: Create hardcoded kubeadm token for joining nodes with 24h expiration (if defined)
shell: >- shell: >-

Loading…
Cancel
Save