mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Merge pull request #24108 from mikedanese/kube-addon-cleanup
Automatic merge from submit-queue
don't source the kube-env in addon-manager
This was added in 2feb658ed7
which became unused after #23603 but wasn't removed
This commit is contained in:
commit
9fd05474c2
@ -201,8 +201,6 @@ script
|
||||
. /etc/kube-env
|
||||
export HOME="/root"
|
||||
export KUBECTL_BIN="/usr/bin/kubectl"
|
||||
export TOKEN_DIR="/etc/srv/kubernetes"
|
||||
export kubelet_kubeconfig_file="/var/lib/kubelet/kubeconfig"
|
||||
export TRUSTY_MASTER="true"
|
||||
if [ -n "${TEST_ADDON_CHECK_INTERVAL_SEC:-}" ]; then
|
||||
export TEST_ADDON_CHECK_INTERVAL_SEC=${TEST_ADDON_CHECK_INTERVAL_SEC}
|
||||
|
@ -76,19 +76,6 @@ echo "== Kubernetes addon manager started at $(date -Is) with ADDON_CHECK_INTERV
|
||||
|
||||
ensure_python
|
||||
|
||||
# Load the kube-env, which has all the environment variables we care
|
||||
# about, in a flat yaml format.
|
||||
kube_env_yaml="/var/cache/kubernetes-install/kube_env.yaml"
|
||||
if [ ! -e "${kubelet_kubeconfig_file}" ]; then
|
||||
eval $(${PYTHON} -c '''
|
||||
import pipes,sys,yaml
|
||||
|
||||
for k,v in yaml.load(sys.stdin).iteritems():
|
||||
print("readonly {var}={value}".format(var = k, value = pipes.quote(str(v))))
|
||||
''' < "${kube_env_yaml}")
|
||||
fi
|
||||
|
||||
|
||||
# Create the namespace that will be used to host the cluster-level add-ons.
|
||||
start_addon /etc/kubernetes/addons/namespace.yaml 100 10 "" &
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user