Skip to content

Commit

Permalink
Merge pull request kubernetes#71382 from yagonobre/fix-reset
Browse files Browse the repository at this point in the history
Fix kubeadm reset in case of external etcd
  • Loading branch information
k8s-ci-robot authored Nov 24, 2018
2 parents 94759c1 + 52835fb commit 7098f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kubeadm/app/cmd/reset.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func getEtcdDataDir(manifestPath string, client clientset.Interface) (string, er

if client != nil {
cfg, err := configutil.FetchConfigFromFileOrCluster(client, os.Stdout, "reset", "", false)
if err == nil {
if err == nil && cfg.Etcd.Local != nil {
return cfg.Etcd.Local.DataDir, nil
}
klog.Warningf("[reset] Unable to fetch the kubeadm-config ConfigMap, using etcd pod spec as fallback: %v", err)
Expand Down

0 comments on commit 7098f1a

Please sign in to comment.