Skip to content

Commit 0988fa3

Browse files
committed
fix: Avoid nil context error
If this code path is followed, we end up with a nil context.
1 parent 446a169 commit 0988fa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/skaffold/deploy/kubectl/kubectl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ func (k *Deployer) Deploy(ctx context.Context, out io.Writer, builds []graph.Art
229229
return err
230230
}
231231

232-
_, endTrace = instrumentation.StartTrace(ctx, "Deploy_LoadImages")
232+
childCtx, endTrace = instrumentation.StartTrace(ctx, "Deploy_LoadImages")
233233
if err := k.imageLoader.LoadImages(childCtx, out, k.localImages, k.originalImages, builds); err != nil {
234234
endTrace(instrumentation.TraceEndError(err))
235235
return err

0 commit comments

Comments
 (0)