Files
chart/library/ix-dev/community/vikunja/templates/_wait-url.tpl
Stavros kois 2cfda45772 add templtes
2023-11-14 23:11:50 +02:00

18 lines
404 B
Smarty

{{- define "vikunja.wait.init" -}}
{{- $url := .url }}
wait-url:
enabled: true
type: init
imageSelector: bashImage
command:
- /bin/ash
- -c
- |
echo "Pinging [{{ $url }}] until it is ready..."
until wget --spider --quiet "{{ $url }}"; do
echo "Waiting for [{{ $url }}] to be ready..."
sleep 2
done
echo "URL [{{ $url }}] is ready!"
{{- end -}}