Filter undefined SANs for apiserver cert (#4913)

Change-Id: I37442fb095fb4217f67f74744ad07c1d5d8229ea
This commit is contained in:
Matthew Mosesohn 2019-06-25 05:54:36 -07:00 committed by Kubernetes Prow Robot
parent de028814e5
commit d270678bda

View file

@ -55,7 +55,7 @@
- name: kubeadm | aggregate all SANs
set_fact:
apiserver_sans: "{{ (sans_base + groups['kube-master'] + sans_lb + sans_lb_ip + sans_supp + sans_access_ip + sans_ip + sans_address + sans_override) | unique }}"
apiserver_sans: "{{ (sans_base + groups['kube-master'] + sans_lb + sans_lb_ip + sans_supp + sans_access_ip + sans_ip + sans_address + sans_override) | select('defined') |unique }}"
vars:
sans_base:
- "kubernetes"