2 Commits

Author SHA1 Message Date
105bc71e9c fix: Remove race condition when testing target url
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-16 11:46:17 +02:00
a6d6e91ffa fix: Set filemode per key 2023-07-16 11:45:19 +02:00
2 changed files with 11 additions and 4 deletions

View File

@ -64,8 +64,8 @@ data:
esac
done
[ $(curl -kLs -w "%{http_code}" -o /dev/null https://$URL) != 200 ] && {
echo 'Could not connect to' $URL
[[ $(getent hosts $URL) ]] || {
echo 'Could not resolve' $URL
exit 1
}

View File

@ -60,18 +60,25 @@ spec:
resources:
{{- toYaml .Values.resources | nindent 12 }}
command:
- /bin/sh
- /bin/bash
- -c
- "/opt/update.sh -u {{ .Values.sidecar.targetUrl }}"
volumeMounts:
- name: {{ .Release.Name }}-configmap
mountPath: /opt/update.sh
subPath: update.sh
defaultMode: 0744
volumes:
- name: {{ .Release.Name }}-configmap
configMap:
name: {{ .Release.Name }}-configmap
items:
- key: db.json
path: db.json
- key: index.html
path: index.html
- key: update.sh
path: update.sh
mode: 0744
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}