kubernetes/cmd
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
..
clicheck Move pkg/kubectl/cmd/util and subdirs to staging 2019-07-29 13:08:41 -07:00
cloud-controller-manager migrate controller-manager metrics to stability framework 2019-08-28 12:26:57 -07:00
controller-manager migrate controller-manager metrics to stability framework 2019-08-28 12:26:57 -07:00
gendocs Create work-around wrappers for pure attribute on go_binary and go_test 2019-02-22 18:08:34 -08:00
genkubedocs Drop cloud-controller-manager artifacts from k/k release 2019-08-06 13:51:27 -04:00
genman Drop cloud-controller-manager artifacts from k/k release 2019-08-06 13:51:27 -04:00
genswaggertypedocs Clean up genswaggertypedocs. 2019-05-01 16:32:05 +00:00
genutils
genyaml Remove genyaml binary 2019-04-12 08:31:29 -04:00
hyperkube migrate controller-manager metrics to stability framework 2019-08-28 12:26:57 -07:00
importverifier delete all duplicate empty blanks 2019-02-23 10:28:04 +08:00
kube-apiserver Merge pull request #82048 from cheftako/kas-np4 2019-08-30 16:15:28 -07:00
kube-controller-manager Merge pull request #81624 from logicalhan/cm-migration 2019-08-29 05:30:09 -07:00
kube-proxy ipvs dualstack: generated items 2019-08-29 23:38:25 +00:00
kube-scheduler Merge pull request #81954 from SataQiu/fix-schedule-20190826 2019-08-28 08:55:59 -07:00
kubeadm kubeadm: Fetching kube-proxy's config map is now optional 2019-09-05 18:25:22 +03:00
kubectl Move pkg/kubectl/version to staging 2019-07-26 15:48:09 -07:00
kubelet Merge pull request #82024 from codenrhoden/mv-hostutil 2019-08-30 19:21:49 -07:00
kubemark Hollow-node should use separate client for heartbeats. 2019-07-10 10:31:04 +02:00
linkcheck Add http response code 503 to check. 2019-08-15 15:52:54 +08:00
preferredimports verify import aliases 2019-06-15 22:31:39 -04:00
verifydependencies improve error messages for verifydependency 2019-07-11 23:47:10 +02:00
BUILD reference paths to update to bump dependencies 2019-07-10 20:11:40 +02:00
OWNERS Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00