Do not run kubeadm upgrade on first deploy (#5339)

Change-Id: I68a962a9dd28c83ef07eaeaf53eb98287f38bca9
pull/5341/head
Matthew Mosesohn 2019-11-14 13:05:34 +03:00 committed by Kubernetes Prow Robot
parent 4f70da2731
commit 8b67159239
1 changed files with 6 additions and 4 deletions

View File

@ -159,16 +159,18 @@
- kubeadm_token
- name: kubeadm | Initialize other masters (experimental control plane)
include: kubeadm-secondary-experimental.yml
include_tasks: kubeadm-secondary-experimental.yml
when: kubeadm_control_plane
- name: kubeadm | Initialize other masters (experimental control plane)
include: kubeadm-secondary-legacy.yml
include_tasks: kubeadm-secondary-legacy.yml
when: not kubeadm_control_plane
- name: kubeadm | upgrade kubernetes cluster
import_tasks: kubeadm-upgrade.yml
when: upgrade_cluster_setup
include_tasks: kubeadm-upgrade.yml
when:
- upgrade_cluster_setup
- kubeadm_already_run.stat.exists
- name: kubeadm | Check serviceaccount key again
stat: