Skip to content

Commit

Permalink
helm: check for contents of bootstartFile
Browse files Browse the repository at this point in the history
Checking for the existence of the .Values.nodeinit.bootstrapFile
file will be a no-op because the file is created by kubelet if
it does not exist. Instead, we should check if the file has some
contents inside of it which is when we can be sure the node-init
DaemonSet has started.

Signed-off-by: André Martins <andre@cilium.io>
  • Loading branch information
aanm committed Mar 2, 2022
1 parent 83d74a2 commit 60c459b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ spec:
- sh
- -c
- |
until test -f {{ .Values.nodeinit.bootstrapFile | quote }}; do
until test -s {{ .Values.nodeinit.bootstrapFile | quote }}; do
echo "Waiting on node-init to run...";
sleep 1;
done
Expand Down

0 comments on commit 60c459b

Please sign in to comment.