2
0
Эх сурвалжийг харах

Passthrough stdin for potential interactive kubectl and helm commands (#4055)

jose-fully-ported 2 жил өмнө
parent
commit
d111b68834

+ 1 - 0
cli/cmd/commands/helm.go

@@ -46,6 +46,7 @@ func runHelm(ctx context.Context, _ *types.GetAuthenticatedUserResponse, client
 
 
 	execCommand := exec.Command("helm", args...)
 	execCommand := exec.Command("helm", args...)
 
 
+	execCommand.Stdin = os.Stdin
 	execCommand.Stdout = os.Stdout
 	execCommand.Stdout = os.Stdout
 	execCommand.Stderr = os.Stderr
 	execCommand.Stderr = os.Stderr
 
 

+ 1 - 0
cli/cmd/commands/kubectl.go

@@ -64,6 +64,7 @@ func runKubectl(ctx context.Context, _ *types.GetAuthenticatedUserResponse, clie
 
 
 	execCommand := exec.Command("kubectl", args...)
 	execCommand := exec.Command("kubectl", args...)
 
 
+	execCommand.Stdin = os.Stdin
 	execCommand.Stdout = os.Stdout
 	execCommand.Stdout = os.Stdout
 	execCommand.Stderr = os.Stderr
 	execCommand.Stderr = os.Stderr