Back to Run -- I was mistaken
parent
71eafef5ce
commit
2588a98435
|
@ -255,8 +255,7 @@ func (k *KubeadmBootstrapper) DeleteCluster(k8s config.KubernetesConfig) error {
|
|||
// PullImages downloads images that will be used by RestartCluster
|
||||
func (k *KubeadmBootstrapper) PullImages(k8s config.KubernetesConfig) error {
|
||||
cmd := fmt.Sprintf("sudo kubeadm config images pull --config %s", constants.KubeadmConfigFile)
|
||||
// Use CombinedOutput instead of Run to avoid spamming stdout/stderr
|
||||
if _, err := k.c.CombinedOutput(cmd); err != nil {
|
||||
if err := k.c.Run(cmd); err != nil {
|
||||
return errors.Wrapf(err, "running cmd: %s", cmd)
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue