Files
kubernetes/pkg/apis
Ivan Shvedunov ef85747e14 Fix serialization of EnforceNodeAllocatable
EnforceNodeAllocatable being `nil` and `[]` are treated in different
ways by kubelet. Namely, `nil` is replaced with `[]string{"pods"}` by
the defaulting mechanism.

E.g. if you run kubelet in Docker-in-Docker environment
you may need to run it with the following options:
`--cgroups-per-qos=false --enforce-node-allocatable=`
(this corresponds to EnforceNodeAllocatable being empty array and not
null) If you then grab kubelet configuration via /configz and try to
reuse it for dynamic kubelet config, kubelet will think that
EnforceNodeAllocatable is null, failing to run in the
Docker-in-Docker environment.

Encountered this while updating Virtlet for Kubernetes 1.6
(the dev environment is based on kubeadm-dind-cluster)
2017-05-17 02:10:51 +03:00
..
2017-04-28 22:55:47 -07:00
2017-04-28 22:55:47 -07:00
2017-04-28 11:28:37 -04:00
2017-04-14 10:40:57 -07:00
2017-04-28 11:28:37 -04:00
2017-04-28 11:28:37 -04:00
2017-04-28 11:28:37 -04:00