blob: 721048d786b388cd3b2a0531d6be4d820b7ca73e [file] [log] [blame]
Andreas Geisslere9f67622024-04-24 15:38:24 +02001{{- if and .Values.redis.enabled .Values.initContainers.waitForRedis.enabled }}
2apiVersion: v1
3kind: ConfigMap
4metadata:
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" $ }}
10data:
11 check-redis.sh: |
12{{ .Files.Get "scripts/check-redis.sh" | indent 4 }}
13{{- end }}