diff --git a/golangci.yaml b/golangci.yaml index 48353ef6f..d3de5a0b3 100644 --- a/golangci.yaml +++ b/golangci.yaml @@ -330,6 +330,7 @@ linters: - errchkjson - ginkgolinter - nilerr + - noctx fast: false diff --git a/pkg/cmd/util/downloadrequest/downloadrequest.go b/pkg/cmd/util/downloadrequest/downloadrequest.go index 76b15a019..b7a016bb9 100644 --- a/pkg/cmd/util/downloadrequest/downloadrequest.go +++ b/pkg/cmd/util/downloadrequest/downloadrequest.go @@ -123,7 +123,7 @@ func Stream(ctx context.Context, kbClient kbclient.Client, namespace, name strin ExpectContinueTimeout: defaultTransport.ExpectContinueTimeout, } - httpReq, err := http.NewRequest(http.MethodGet, created.Status.DownloadURL, nil) + httpReq, err := http.NewRequestWithContext(ctx, http.MethodGet, created.Status.DownloadURL, nil) if err != nil { return err }