File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,9 @@ func (d *Driver) Create() error {
157
157
glog .Infof ("duration metric: took %f seconds to extract preloaded images to volume" , time .Since (t ).Seconds ())
158
158
}
159
159
}()
160
+ if pErr == oci .ErrInsufficientDockerStorage {
161
+ return pErr
162
+ }
160
163
161
164
if err := oci .CreateContainerNode (params ); err != nil {
162
165
return errors .Wrap (err , "create kic node" )
@@ -167,7 +170,7 @@ func (d *Driver) Create() error {
167
170
}
168
171
169
172
waitForPreload .Wait ()
170
- return pErr
173
+ return nil
171
174
}
172
175
173
176
// prepareSSH will generate keys and copy to the container so minikube ssh works
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ import (
30
30
"k8s.io/minikube/cmd/minikube/cmd"
31
31
"k8s.io/minikube/pkg/minikube/constants"
32
32
"k8s.io/minikube/pkg/minikube/localpath"
33
- "k8s.io/minikube/pkg/minikube/reason"
34
33
)
35
34
36
35
func TestInsufficientStorage (t * testing.T ) {
@@ -85,7 +84,7 @@ func verifyClusterState(t *testing.T, contents []byte) {
85
84
t .Fatalf ("unmarshalling: %v" , err )
86
85
}
87
86
// verify the status looks as we expect
88
- if cs .StatusCode != reason . ExInsufficientStorage {
87
+ if cs .StatusCode != cmd . InsufficientStorage {
89
88
t .Fatalf ("incorrect status code: %v" , cs .StatusCode )
90
89
}
91
90
if cs .StatusName != "InsufficientStorage" {
You can’t perform that action at this time.
0 commit comments