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-05-31 11:25:29 +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-05-15 12:50:56 -07:00
2017-05-31 15:08:25 -07:00
2017-06-13 12:57:05 -04:00
2017-06-27 16:25:20 -07:00
2017-06-16 07:09:21 +00:00
2017-04-04 10:36:30 +01:00
2017-06-27 16:25:20 -07:00
2017-06-24 01:14:31 -04:00
2017-06-23 09:49:30 -07:00
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-06-28 12:55:21 -07:00
2017-06-27 16:25:20 -07:00
2017-05-19 02:04:59 +08:00
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-06-23 05:08:30 -07:00
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-06-13 12:57:05 -04:00
2017-06-26 11:38:36 -04:00
2017-06-23 05:00:35 -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-02 19:53:40 -07:00
2017-05-26 10:07:44 +08:00
2017-06-23 09:49:30 -07:00
2017-01-25 08:29:48 -05:00
2017-06-23 09:49:30 -07:00
2017-06-26 11:17:53 -07:00
2017-06-26 11:17:53 -07:00
2017-01-25 08:29:48 -05:00
2017-06-23 09:49:30 -07:00
2017-05-26 17:38:26 +08:00
2017-06-23 09:49:30 -07:00
2017-05-24 10:14:00 +08:00
2017-06-23 09:49:30 -07:00
2017-06-03 18:30:40 -07:00
2017-06-21 11:17:24 -04:00
2017-03-29 16:36:22 +08:00
2017-06-23 09:49:30 -07:00
2017-01-25 08:29:48 -05:00
2017-06-27 16:25:20 -07:00
2017-05-16 18:45:38 +08:00
2017-06-27 16:25:20 -07:00
2017-01-25 08:29:48 -05:00
2017-06-23 09:49:30 -07:00
2017-01-26 19:59:16 -05:00
2017-06-27 16:25:20 -07:00
2017-05-11 09:11:07 -04:00
2017-06-27 16:25:20 -07:00
2017-01-26 19:59:25 -05:00
2017-06-27 16:25:20 -07:00
2017-06-16 13:33:26 -07:00
2017-06-27 16:25:20 -07:00
2017-06-23 09:49:30 -07:00
2017-06-23 09:49:30 -07:00
2017-05-19 02:04:59 +08:00
2017-06-27 16:25:20 -07:00
2017-06-27 16:25:20 -07:00
2017-02-23 00:28:32 -05:00
2017-06-27 16:25:20 -07:00
2017-06-23 09:49:30 -07:00
2017-06-27 16:25:20 -07:00
2017-04-25 15:07:01 +08:00
2017-04-04 10:36:30 +01:00
2017-06-27 16:25:20 -07:00
2017-01-25 08:29:48 -05:00
2017-06-27 16:25:20 -07:00
2017-05-28 11:23:44 -07:00
2017-05-31 13:02:23 +05:30
2017-06-27 16:25:20 -07:00
2017-05-19 19:17:43 -03:00
2017-05-19 19:17:43 -03:00
2017-04-04 10:36:30 +01:00
2017-06-27 16:25:20 -07:00
2017-05-22 18:57:11 -04:00
2017-01-26 19:59:16 -05: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-27 16:25:20 -07:00
2017-06-13 12:57:05 -04: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-04-06 20:12:50 -07:00
2017-06-27 16:25:20 -07:00