File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ spec:
119119 args :
120120 - -c
121121 - |
122- SLEEP=false /install-cni.sh
122+ SLEEP=false source /install-cni.sh
123123 /token-watcher.sh &
124124 /ip-control-loop -log-level debug
125125 image : ghcr.io/k8snetworkplumbingwg/whereabouts:latest
Original file line number Diff line number Diff line change @@ -16,12 +16,10 @@ SERVICE_ACCOUNT_TOKEN=$(cat $SERVICE_ACCOUNT_PATH/token)
1616SERVICE_ACCOUNT_TOKEN_PATH=$SERVICE_ACCOUNT_PATH /token
1717SKIP_TLS_VERIFY=${SKIP_TLS_VERIFY:- false}
1818
19- LAST_SERVICEACCOUNT_MD5SUM=" "
20- LAST_KUBE_CA_FILE_MD5SUM=" "
2119
2220function log()
2321{
24- echo " $( date --iso-8601=seconds ) ${1} "
22+ echo " $( date -Iseconds ) ${1} "
2523}
2624
2725function error()
Original file line number Diff line number Diff line change @@ -9,9 +9,7 @@ echo "Sleep and Watching for service account token and CA file changes..."
99while true ; do
1010 # Check the md5sum of the service account token and ca.
1111 svcaccountsum=" $( get_token_md5sum) "
12- if [ -f " $KUBE_CA_FILE " ]; then
13- casum=" $( get_ca_file_md5sum) "
14- fi
12+ casum=" $( get_ca_file_md5sum) "
1513 if [ " $svcaccountsum " != " $LAST_SERVICEACCOUNT_MD5SUM " ] || ! [ " $SKIP_TLS_VERIFY " == " true" ] && [ " $casum " != " $LAST_KUBE_CA_FILE_MD5SUM " ]; then
1614 log " Detected service account or CA file change, regenerating kubeconfig..."
1715 generateKubeConfig
You can’t perform that action at this time.
0 commit comments