提交 d6acf7f4 编写于 作者: P Priya Wadhwa

fix issues

上级 4cff7900
......@@ -157,6 +157,9 @@ func (d *Driver) Create() error {
glog.Infof("duration metric: took %f seconds to extract preloaded images to volume", time.Since(t).Seconds())
}
}()
if pErr == oci.ErrInsufficientDockerStorage {
return pErr
}
if err := oci.CreateContainerNode(params); err != nil {
return errors.Wrap(err, "create kic node")
......@@ -167,7 +170,7 @@ func (d *Driver) Create() error {
}
waitForPreload.Wait()
return pErr
return nil
}
// prepareSSH will generate keys and copy to the container so minikube ssh works
......
......@@ -30,7 +30,6 @@ import (
"k8s.io/minikube/cmd/minikube/cmd"
"k8s.io/minikube/pkg/minikube/constants"
"k8s.io/minikube/pkg/minikube/localpath"
"k8s.io/minikube/pkg/minikube/reason"
)
func TestInsufficientStorage(t *testing.T) {
......@@ -85,7 +84,7 @@ func verifyClusterState(t *testing.T, contents []byte) {
t.Fatalf("unmarshalling: %v", err)
}
// verify the status looks as we expect
if cs.StatusCode != reason.ExInsufficientStorage {
if cs.StatusCode != cmd.InsufficientStorage {
t.Fatalf("incorrect status code: %v", cs.StatusCode)
}
if cs.StatusName != "InsufficientStorage" {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册