apiVersion: v1 kind: Pod metadata: name: {{ template "redis-ha.fullname" . }}-configmap-test labels: {{ include "labels.standard" . | indent 4 }} annotations: "helm.sh/hook": test-success spec: containers: - name: check-init image: koalaman/shellcheck:v0.5.0 args: - --shell=sh - /readonly-config/init.sh volumeMounts: - name: config mountPath: /readonly-config readOnly: true {{- if .Values.imagePullSecrets }} imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 4 }} {{- end }} restartPolicy: Never volumes: - name: config configMap: name: {{ template "redis-ha.fullname" . }}-configmap