kubernetes/cmd/kubeadm/app/util
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
..
apiclient cleanup: fix typo "contstruct" -> "construct" 2019-08-06 06:22:46 +08:00
audit add BUILD 2018-10-30 16:23:52 +08:00
certs kubeadm: fix name of CA spell error 2019-08-06 12:01:28 +08:00
config kubeadm: Fetching kube-proxy's config map is now optional 2019-09-05 18:25:22 +03:00
crypto Add kubeadm init upload encrypted certs phase 2019-02-19 02:52:21 -03:00
dryrun error-imports-cleanups 2019-01-03 13:25:18 +01:00
etcd vendor: update with "update-vendor.sh" script 2019-08-29 08:46:02 -07:00
initsystem kubeadm: simplified returns 2019-08-02 13:01:02 +03:00
kubeconfig kubeadm: use EnsureCertificateAuthorityIsEmbedded() for file discovery 2019-08-05 03:23:41 +03:00
kustomize kubeadm Json6902 Patches 2019-08-27 14:14:35 +02:00
pkiutil Correct comment in CertOrKeyExist 2019-08-25 19:30:20 -07:00
pubkeypin kubeadm: check all available CA certs against pinned certs 2019-04-15 15:08:06 +03:00
runtime Fix typos. 2019-06-11 01:52:14 +08:00
staticpod kubeadm: use etcd's /health endpoint for it's liveness probe 2019-08-16 01:06:49 +03:00
system kubeadm: fix static check failures 2019-08-23 10:51:12 +08:00
arguments_test.go kubeadm: use T.Run API in app/util 2018-12-29 18:27:38 +02:00
arguments.go Use fmt.printf() to end with a newline 2019-04-10 03:27:25 -04:00
BUILD kubeadm-kustomize-core 2019-08-12 14:16:51 +02:00
cgroupdriver_test.go use new method to detect cgroup driver 2019-04-27 08:39:18 +00:00
cgroupdriver.go Clean up kubeadm. 2019-05-01 22:16:06 +00:00
chroot_unix.go [kubeadm/app/]switch to github.com/pkg/errors 2018-10-30 16:23:24 +08:00
chroot_windows.go [kubeadm/app/]switch to github.com/pkg/errors 2018-10-30 16:23:24 +08:00
copy.go Adding etcd upgrade to kubeadm upgrade apply 2017-11-18 18:47:50 -05:00
endpoint_test.go kubeadm cleanup: master -> control-plane (cont.3) 2019-02-23 10:19:26 +07:00
endpoint.go kubeadm cleanup: master -> control-plane (cont.3) 2019-02-23 10:19:26 +07:00
error_test.go kubeadm: use T.Run API in app/util 2018-12-29 18:27:38 +02:00
error.go kubeadm: print the stack trace of an error for klog level v>=5 2019-08-22 20:09:54 +03:00
marshal_test.go kubeadm: Introduce v1beta2 config 2019-04-25 17:10:04 +03:00
marshal.go Refactor loops over SupportedMediaTypes() where mediaType is used to match a single SerializerInfo{} 2019-04-04 19:01:01 -06:00
net_test.go Fix Test for kubeadm/app/util/net.GetHostname 2019-08-19 14:38:19 +02:00
net.go kubeadm: get rid of dependency on pkg/util/node 2019-07-17 18:49:39 +03:00
template_test.go kubeadm: use T.Run API in app/util 2018-12-29 18:27:38 +02:00
template.go [kubeadm/app/util]switch to github.com/pkg/errors 2018-10-26 15:17:21 +08:00
version_test.go kubeadm should always fall back to client version when there is any internet issue 2019-07-19 15:13:47 +08:00
version.go kubeadm should always fall back to client version when there is any internet issue 2019-07-19 15:13:47 +08:00