Files
kubernetes/pkg/kubectl/cmd
Kubernetes Submit Queue 7c656ab4d2 Merge pull request #45611 from atombender/issue-45608
Automatic merge from submit-queue (batch tested with PRs 48183, 45611, 48065)

kubectl: 'apply view-last-applied' must not use printf() semantics

**What this PR does / why we need it**:
This fixes `kubectl apply view-last-applied` to not use `fmt.Fprintf()`, as this will cause format codes in the YAML/JSON to be interpreted. For example, if a resource manifest contains `%r`, this would cause `view-last-applied` so print `%!r(MISSING)`.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #45608.

**Special notes for your reviewer**:

**Release note**:

```release-note
Fixes an edge case where "kubectl apply view-last-applied" would emit garbage if the data contained Go format codes.
```
2017-06-28 12:55:21 -07:00
..
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-05-31 15:08:25 -07:00
2017-06-27 16:25:20 -07:00
2017-06-16 07:09:21 +00:00
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-06-26 11:38:36 -04:00
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-06-21 11:17:24 -04:00
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-05-31 13:02:23 +05:30
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-05-11 20:09:31 +08:00
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-06-22 11:31:03 -07:00
2017-06-27 16:25:20 -07:00
2017-05-15 13:51:39 -07:00
2017-06-27 16:25:20 -07:00
2017-06-22 11:31:03 -07:00
2017-06-27 16:25:20 -07:00
2017-06-22 11:31:03 -07:00
2017-06-27 16:25:20 -07:00