Files
kubernetes/pkg/kubectl
Kubernetes Submit Queue 8ce6378512 Merge pull request #46091 from xilabao/new-output-in-edit
Automatic merge from submit-queue (batch tested with PRs 46091, 48280)

allow output patch string in edit command

**What this PR does / why we need it**:
allow user to get the patch from edit command if user is not familiar with the patch format.

```
# ./cluster/kubectl.sh create role a --verb=get,list --resource=no
role "a" created

# ./cluster/kubectl.sh edit role a --output-patch=true
Patch: {"rules":[{"apiGroups":[""],"resources":["nodes"],"verbs":["get","list","delete"]}]}
role "a" edited

# ./cluster/kubectl.sh create role b --verb=get,list --resource=no
role "b" created

# ./cluster/kubectl.sh patch role b -p '{"rules":[{"apiGroups":[""],"resources":["nodes"],"verbs":["get","list","delete"]}]}'
role "b" patched
```
**Which issue this PR fixes**: fixes #47173

**Special notes for your reviewer**:

**Release note**:

```release-note
Could get the patch from kubectl edit command
```
2017-07-16 18:04:42 -07:00
..
2017-07-07 09:12:29 -04:00
2017-07-05 12:42:41 -07:00
2017-07-12 11:44:28 -07:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-06-02 09:26:13 +08:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-05-05 13:57:01 -07:00
2017-06-30 23:04:18 -07:00
2017-01-20 08:04:53 -05:00
2017-06-03 14:35:49 +08:00
2017-01-11 09:09:48 -05:00
2017-01-25 17:32:22 -08:00
2017-05-23 07:18:44 -07:00
2017-01-11 09:09:48 -05:00
2017-06-30 23:04:18 -07:00
2017-06-22 11:31:03 -07:00
2017-01-26 13:54:40 -05:00
2017-01-11 09:09:48 -05:00
2017-03-08 07:58:01 -08:00
2017-01-11 09:09:48 -05:00
2017-06-22 11:31:03 -07:00
2017-06-22 11:31:03 -07:00
2017-06-01 14:25:01 -07:00