Skip to content

Commit

Permalink
Remove admin.conf removal
Browse files Browse the repository at this point in the history
kubeadm is the default for a long time now,
and admin.conf is created by it, so let kubeadm handle it

Signed-off-by: Etienne Champetier <[email protected]>
  • Loading branch information
champtar authored and k8s-ci-robot committed Mar 5, 2021
1 parent a6e1f5e commit 280036f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions roles/kubernetes/control-plane/tasks/kubeadm-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@
get_mime: no
register: kubeadm_already_run

- name: kubeadm | Delete old admin.conf
file:
path: "{{ kube_config_dir }}/admin.conf"
state: absent
when:
- not kubeadm_already_run.stat.exists

- 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 + sans_hostname + sans_fqdn) | unique }}"
Expand Down

0 comments on commit 280036f

Please sign in to comment.