From d270678bda1a08139e1606171769a639a6a1fd2e Mon Sep 17 00:00:00 2001 From: Matthew Mosesohn Date: Tue, 25 Jun 2019 05:54:36 -0700 Subject: [PATCH] Filter undefined SANs for apiserver cert (#4913) Change-Id: I37442fb095fb4217f67f74744ad07c1d5d8229ea --- roles/kubernetes/master/tasks/kubeadm-setup.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes/master/tasks/kubeadm-setup.yml b/roles/kubernetes/master/tasks/kubeadm-setup.yml index bf72821fe..19f918338 100644 --- a/roles/kubernetes/master/tasks/kubeadm-setup.yml +++ b/roles/kubernetes/master/tasks/kubeadm-setup.yml @@ -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"