Skip to content

Commit 1dc0bf1

Browse files
committed
More comments
1 parent 654b7dc commit 1dc0bf1

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

doc/crds/daemonset-install.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

script/lib.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@ SERVICE_ACCOUNT_TOKEN=$(cat $SERVICE_ACCOUNT_PATH/token)
1616
SERVICE_ACCOUNT_TOKEN_PATH=$SERVICE_ACCOUNT_PATH/token
1717
SKIP_TLS_VERIFY=${SKIP_TLS_VERIFY:-false}
1818

19-
LAST_SERVICEACCOUNT_MD5SUM=""
20-
LAST_KUBE_CA_FILE_MD5SUM=""
2119

2220
function log()
2321
{
24-
echo "$(date --iso-8601=seconds) ${1}"
22+
echo "$(date -Iseconds) ${1}"
2523
}
2624

2725
function error()

script/token-watcher.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ echo "Sleep and Watching for service account token and CA file changes..."
99
while 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

0 commit comments

Comments
 (0)