kubernetes/cmd/kubeadm
Rostislav M. Georgiev 31b4c782c7 kubeadm: Fetching kube-proxy's config map is now optional
Whenever kubeadm needs to fetch its configuration from the cluster, it gets
the component configuration of all supported components (currently only kubelet
and kube-proxy). However, kube-proxy is deemed an optional component and its
installation may be skipped (by skipping the addon/kube-proxy phase on init).
When kube-proxy's installation is skipped, its config map is not created and
all kubeadm operations, that fetch the config from the cluster, are bound to
fail with "not found" or "forbidden" (because of missing RBAC rules) errors.

To fix this issue, we have to ignore the 403 and 404 errors, returned on an
attempt to fetch kube-proxy's component config from the cluster.
The `GetFromKubeProxyConfigMap` function now supports returning nil for both
error and object to indicate just such a case.

Signed-off-by: Rostislav M. Georgiev <rostislavg@vmware.com>
2019-09-05 18:25:22 +03:00
..
app kubeadm: Fetching kube-proxy's config map is now optional 2019-09-05 18:25:22 +03:00
test kubeadm: fix name of CA spell error 2019-08-06 12:01:28 +08:00
.import-restrictions cmd/kubeadm: remove "rpc/status" from import-restrictions 2019-08-29 08:46:17 -07:00
BUILD kubeadm: print the stack trace of an error for klog level v>=5 2019-08-22 20:09:54 +03:00
kubeadm.go kubeadm: print the stack trace of an error for klog level v>=5 2019-08-22 20:09:54 +03:00
OWNERS kubeadm: update OWNERS for 1.16 2019-06-27 00:01:05 +03:00