From de2ce53efbf408da656d8386dafdd174f557df37 Mon Sep 17 00:00:00 2001 From: sbwsg Date: Tue, 9 Nov 2021 13:15:24 -0500 Subject: [PATCH] Fix issue where kubectl apply is run in place of kubectl create (#494) --- pkg/commands/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/commands/create.go b/pkg/commands/create.go index a3a14d94eb..f69cc14902 100644 --- a/pkg/commands/create.go +++ b/pkg/commands/create.go @@ -86,7 +86,7 @@ func addCreate(topLevel *cobra.Command) { // Issue a "kubectl create" command reading from stdin, // to which we will pipe the resolved files, and any // remaining flags passed after '--'. - argv := []string{"apply", "-f", "-"} + argv := []string{"create", "-f", "-"} if kflags := kf.Values(); len(kflags) != 0 { skflags := strings.Join(stripPassword(kflags), " ") log.Printf(kubectlFlagsWarningTemplate,