@@ -24,6 +24,7 @@ import (
24
24
25
25
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/build"
26
26
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/config"
27
+ "github.com/GoogleContainerTools/skaffold/pkg/skaffold/kubectl"
27
28
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/runner/runcontext"
28
29
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/util"
29
30
"github.com/GoogleContainerTools/skaffold/testutil"
@@ -101,14 +102,17 @@ func TestLoadImagesInKindNodes(t *testing.T) {
101
102
testutil .Run (t , test .description , func (t * testutil.T ) {
102
103
t .Override (& util .DefaultExecCommand , test .commands )
103
104
104
- r := & SkaffoldRunner {
105
- builds : test .built ,
106
- runCtx : & runcontext.RunContext {
107
- Opts : config.SkaffoldOptions {
108
- Namespace : "namespace" ,
109
- },
110
- KubeContext : "kubecontext" ,
105
+ runCtx := & runcontext.RunContext {
106
+ Opts : config.SkaffoldOptions {
107
+ Namespace : "namespace" ,
111
108
},
109
+ KubeContext : "kubecontext" ,
110
+ }
111
+
112
+ r := & SkaffoldRunner {
113
+ runCtx : runCtx ,
114
+ kubectlCLI : kubectl .NewFromRunContext (runCtx ),
115
+ builds : test .built ,
112
116
}
113
117
err := r .loadImagesInKindNodes (context .Background (), ioutil .Discard , test .kindCluster , test .deployed )
114
118
0 commit comments