Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
fix: do kubeadm init only if kubeconfig does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
eliobischof committed Jan 24, 2020
1 parent a04383c commit 551b50b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ nodes:

if joinCP != nil {

if doKubeadmInit || kubeconfig.Value != "" || !oneoff {
if doKubeadmInit && (kubeconfig.Value != "" || !oneoff) {
return false, errors.New("initializing a cluster is not supported when kubeconfig exists or the flag --recur is true")
}

Expand Down

0 comments on commit 551b50b

Please sign in to comment.