Skip to content

Commit

Permalink
Fix issue where kubectl apply is run in place of kubectl create (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbwsg authored Nov 9, 2021
1 parent 0015a81 commit de2ce53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commands/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit de2ce53

Please sign in to comment.