diff --git a/pkg/commands/helpers/kubectl_auth.go b/pkg/commands/helpers/kubectl_auth.go index f40f742348..364e1c375d 100644 --- a/pkg/commands/helpers/kubectl_auth.go +++ b/pkg/commands/helpers/kubectl_auth.go @@ -71,7 +71,7 @@ func NewCmdHelperKubectlAuth(f *util.Factory, out io.Writer) *cobra.Command { Use: "kubectl-auth", Short: kubectlAuthShort, Run: func(cmd *cobra.Command, args []string) { - ctx := context.TODO() + ctx := cmd.Context() err := RunKubectlAuthHelper(ctx, f, out, options) if err != nil {