mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 02:38:12 +00:00
Merge pull request #33250 from ymqytw/edit_before_create
Automatic merge from submit-queue support editing before creating resource Support `kubectl create -f config.yaml --edit` Support editing before creating resource from files, urls and stdin. The behavior is similar to `kubectl edit` It won't create anything when edit make no change. partial: #18064 Based on: #33686 and #33973 ```release-note Support editing before creating resource from files, urls and stdin, e.g. `kubectl create -f config.yaml --edit` It won't create anything when edit make no change. ```
This commit is contained in:
@@ -221,7 +221,7 @@ func NewKubectlCommand(f cmdutil.Factory, in io.Reader, out, err io.Writer) *cob
|
||||
{
|
||||
Message: "Basic Commands (Beginner):",
|
||||
Commands: []*cobra.Command{
|
||||
NewCmdCreate(f, out),
|
||||
NewCmdCreate(f, out, err),
|
||||
NewCmdExposeService(f, out),
|
||||
NewCmdRun(f, in, out, err),
|
||||
set.NewCmdSet(f, out, err),
|
||||
|
||||
Reference in New Issue
Block a user