Andreas Geissler | e9f6762 | 2024-04-24 15:38:24 +0200 | [diff] [blame^] | 1 | {{- if and .Values.redis.enabled .Values.initContainers.waitForRedis.enabled }} |
2 | apiVersion: v1 | ||||
3 | kind: ConfigMap | ||||
4 | metadata: | ||||
5 | labels: | ||||
6 | app: {{ template "oauth2-proxy.name" . }} | ||||
7 | {{- include "oauth2-proxy.labels" . | indent 4 }} | ||||
8 | name: {{ template "oauth2-proxy.fullname" . }}-wait-for-redis | ||||
9 | namespace: {{ template "oauth2-proxy.namespace" $ }} | ||||
10 | data: | ||||
11 | check-redis.sh: | | ||||
12 | {{ .Files.Get "scripts/check-redis.sh" | indent 4 }} | ||||
13 | {{- end }} |