From fbf3556772b1dc6ee0eae95941834c58dece9092 Mon Sep 17 00:00:00 2001 From: justinsb Date: Wed, 29 Nov 2023 22:44:58 -0500 Subject: [PATCH] Thread context through kubectl-auth --- pkg/commands/helpers/kubectl_auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/commands/helpers/kubectl_auth.go b/pkg/commands/helpers/kubectl_auth.go index f40f742348168..364e1c375d76e 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 {