k3s/pkg
Kubernetes Submit Queue 8cb14a4f7f Merge pull request #42755 from aveshagarwal/master-fix-default-toleration-seconds
Automatic merge from submit-queue (batch tested with PRs 41794, 42349, 42755, 42901, 42933)

Fix DefaultTolerationSeconds admission plugin

DefaultTolerationSeconds is not working as expected. It is supposed to add default tolerations (for unreachable and notready conditions). but no pod was getting these toleration. And api server was throwing this error:

```
Mar 08 13:43:57 fedora25 hyperkube[32070]: E0308 13:43:57.769212   32070 admission.go:71] expected pod but got Pod
Mar 08 13:43:57 fedora25 hyperkube[32070]: E0308 13:43:57.789055   32070 admission.go:71] expected pod but got Pod
Mar 08 13:44:02 fedora25 hyperkube[32070]: E0308 13:44:02.006784   32070 admission.go:71] expected pod but got Pod
Mar 08 13:45:39 fedora25 hyperkube[32070]: E0308 13:45:39.754669   32070 admission.go:71] expected pod but got Pod
Mar 08 14:48:16 fedora25 hyperkube[32070]: E0308 14:48:16.673181   32070 admission.go:71] expected pod but got Pod
```

The reason for this error is that the input to admission plugins is internal api objects not versioned objects so expecting versioned object is incorrect. Due to this, no pod got desired tolerations and it always showed:

```
Tolerations: <none>
```

After this fix, the correct  tolerations are being assigned to pods as follows:

```
Tolerations:	node.alpha.kubernetes.io/notReady=:Exists:NoExecute for 300s
		node.alpha.kubernetes.io/unreachable=:Exists:NoExecute for 300s
```

@davidopp @kevin-wangzefeng @kubernetes/sig-scheduling-pr-reviews @kubernetes/sig-scheduling-bugs @derekwaynecarr 

Fixes https://github.com/kubernetes/kubernetes/issues/42716
2017-03-10 22:02:18 -08:00
..
api Merge pull request #42755 from aveshagarwal/master-fix-default-toleration-seconds 2017-03-10 22:02:18 -08:00
apimachinery/tests API 2017-02-28 23:05:40 -08:00
apis Merge pull request #42553 from k82cn/autogen_proto 2017-03-09 07:37:36 -08:00
auth
bootstrap/api kubeadm: Implement the kubeadm token command fully and move it out of the experimental subsection 2017-02-27 12:56:03 +02:00
capabilities
client Use Histogram instead of Summary 2017-03-10 07:24:38 +01:00
cloudprovider Merge pull request #42444 from jingxu97/Mar/deleteVolume 2017-03-10 12:50:24 -08:00
controller Merge pull request #42862 from caesarxuchao/sync-warning 2017-03-10 14:01:23 -08:00
conversion
credentialprovider
features Move taint eviction feature flag to feature-gates 2017-03-08 10:04:18 +01:00
fieldpath
fields
generated Update docs and client 2017-03-09 07:34:56 +00:00
hyperkube
kubeapiserver update names for kube plugin initializer to avoid conflicts 2017-03-06 10:18:21 -05:00
kubectl Merge pull request #41830 from irfanurrehman/fed-rbac-1 2017-03-10 15:56:47 -08:00
kubelet Merge pull request #42642 from fraenkel/envfrom 2017-03-10 17:37:31 -08:00
kubemark kubemark: enable CRI in the hollow kubelet 2017-03-09 09:52:17 -08:00
labels
master Regenerate everything 2017-03-02 08:56:26 +01:00
metrics
printers Add new DaemonSetStatus to kubectl printer and describer 2017-03-09 15:45:17 -08:00
probe Add support for attacher/detacher interface in Flex volume 2017-02-24 20:18:06 -05:00
proxy Merge pull request #42165 from wojtek-t/fix_kubeproxy_initial_bug 2017-03-02 03:20:27 -08:00
quota Regenerate everything 2017-03-02 10:23:58 +01:00
registry Validation PVs for mount options 2017-03-09 18:24:37 -05:00
routes
runtime
security Addition of ScaleIO Kubernetes Volume Plugin 2017-03-03 15:47:19 -05:00
securitycontext
serviceaccount
ssh
types
util Merge pull request #41618 from JiangtianLi/k8swin 2017-03-01 07:48:16 -08:00
version
volume Validation PVs for mount options 2017-03-09 18:24:37 -05:00
watch
BUILD Regenerate everything 2017-03-02 08:56:26 +01:00
OWNERS