kubernetes/pkg
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
..
api Autogenerated files 2017-06-26 15:02:49 -07:00
apimachinery/tests run hack/update-all 2017-06-22 11:31:03 -07:00
apis run hack/update-all 2017-06-22 11:31:03 -07:00
auth Only do string trim when it's necessary 2017-06-15 17:32:31 +08:00
bootstrap/api run hack/update-all 2017-06-22 11:31:03 -07:00
capabilities Fix comment for method SetForTests 2017-02-14 17:16:49 +08:00
client run hack/update-all 2017-06-22 11:31:03 -07:00
cloudprovider Merge pull request #48003 from MrHohn/gce-xlb-cleanup 2017-06-27 14:08:21 -07:00
controller Merge pull request #46761 from yastij/syncService-remove-copy 2017-06-27 15:02:00 -07:00
conversion Revert "Remove conversion package" 2017-01-22 15:41:06 -08:00
credentialprovider run hack/update-all 2017-06-22 11:31:03 -07:00
features Add priority to Kubernetes API 2017-06-26 13:43:19 -07:00
fieldpath run hack/update-all 2017-06-22 11:31:03 -07:00
fields move pkg/fields to apimachinery 2017-01-19 09:50:16 -05:00
generated run hack/update-all 2017-06-22 11:31:03 -07:00
hyperkube Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
kubeapiserver Merge pull request #47038 from yastij/DefaultExternalHost-for-registredCP 2017-06-27 08:29:25 -07:00
kubectl Merge pull request #45611 from atombender/issue-45608 2017-06-28 12:55:21 -07:00
kubelet Merge pull request #48123 from msau42/fix-allocatable-race 2017-06-28 02:00:07 -07:00
kubemark Merge pull request #47783 from NickrenREN/containerruntime 2017-06-23 08:29:28 -07:00
labels add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
master run hack/update-all 2017-06-22 11:31:03 -07:00
metrics autogenerated 2017-04-14 10:40:57 -07:00
printers Move DaemonSet to table printer 2017-06-26 20:58:02 -04:00
probe Extend Iptables interface with SaveInto 2017-05-19 20:44:25 +02:00
proxy Move iptables logging in kubeproxy from Errorf to V(2).Infof 2017-06-26 19:59:23 +02:00
quota run hack/update-all 2017-06-22 11:31:03 -07:00
registry run hack/update-all 2017-06-22 11:31:03 -07:00
routes Merge pull request #45490 from deads2k/owners-01-extensions 2017-05-10 12:51:51 -07:00
runtime add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
security run hack/update-all 2017-06-22 11:31:03 -07:00
securitycontext run hack/update-all 2017-06-22 11:31:03 -07:00
serviceaccount run hack/update-all 2017-06-22 11:31:03 -07:00
ssh autogenerated 2017-04-14 10:40:57 -07:00
types add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
util Merge pull request #47242 from k82cn/make_golint_happy 2017-06-26 20:02:40 -07:00
version Convert go_binary linkstamp to x_defs 2017-06-08 14:59:55 -07:00
volume Merge pull request #47647 from humblec/glusterfs-unused-var 2017-06-26 11:41:01 -07:00
watch autogenerated 2017-04-14 10:40:57 -07:00
BUILD run hack/update-all 2017-06-22 11:31:03 -07:00
OWNERS Updated top level owners file to match new format 2017-01-19 11:29:16 -08:00