mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 09:16:29 +00:00
Move kubelet.sh.conf sourcing before exit checks
Signed-off-by: pgayvallet <pierre.gayvallet@gmail.com>
This commit is contained in:
parent
ba8e01bf13
commit
179c82e0cb
@ -2,11 +2,15 @@
|
||||
# Kubelet outputs only to stderr, so arrange for everything we do to go there too
|
||||
exec 1>&2
|
||||
|
||||
if [ -e /etc/kubelet.sh.conf ] ; then
|
||||
. /etc/kubelet.sh.conf
|
||||
fi
|
||||
|
||||
if [ -f /var/config/kubelet/disabled ] ; then
|
||||
echo "kubelet.sh: /var/config/kubelet/disabled file is present, exiting"
|
||||
exit 0
|
||||
fi
|
||||
if ! [ -z "$KUBELET_DISABLED" ] ; then
|
||||
if [ -n "$KUBELET_DISABLED" ] ; then
|
||||
echo "kubelet.sh: KUBELET_DISABLED environ variable is set, exiting"
|
||||
exit 0
|
||||
fi
|
||||
@ -16,9 +20,6 @@ if [ ! -e /var/lib/cni/.opt.defaults-extracted ] ; then
|
||||
tar -xzf /root/cni.tgz -C /var/lib/cni/opt/bin
|
||||
touch /var/lib/cni/.opt.defaults-extracted
|
||||
fi
|
||||
if [ -e /etc/kubelet.sh.conf ] ; then
|
||||
. /etc/kubelet.sh.conf
|
||||
fi
|
||||
|
||||
await=/etc/kubernetes/kubelet.conf
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user