kubernetes/cmd/kubeadm/app
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
..
apis/kubeadm Merge pull request #81458 from fabriziopandini/kubeadm-kustomize-ux 2019-08-22 05:46:32 -07:00
cmd Merge pull request #81791 from yastij/remove-ipvs-checks 2019-08-26 20:55:22 -07:00
componentconfigs kubeadm: Fetching kube-proxy's config map is now optional 2019-09-05 18:25:22 +03:00
constants bump coredns version in kubeadm to 1.6.2 2019-08-29 10:13:05 -04:00
discovery kubeadm: use EnsureCertificateAuthorityIsEmbedded() for file discovery 2019-08-05 03:23:41 +03:00
features Adds kubeadm feature-gate for dual-stack (IPv6DualStack). 2019-07-14 19:44:48 -07:00
images kubeadm: fix minor typo in a comment 2019-06-07 15:56:33 -07:00
phases Correct func name WithBuildMetadata 2019-08-26 21:10:56 -07:00
preflight Merge pull request #81791 from yastij/remove-ipvs-checks 2019-08-26 20:55:22 -07:00
util kubeadm: Fetching kube-proxy's config map is now optional 2019-09-05 18:25:22 +03:00
version fix kubeadm version def.bzl 2019-08-08 17:04:36 +08:00
BUILD kubeadm: use local copy of kubectl's version package 2019-07-16 09:51:10 +08:00
kubeadm.go kubeadm: move klog.InitFlags into app/kubeadm.go 2019-07-09 10:42:22 +08:00