kubeasz/manifests/redis-cluster/redis-ha/templates/tests/test-redis-ha-configmap.yaml

28 lines
672 B
YAML
Raw Normal View History

2019-01-30 21:23:17 +08:00
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
2019-01-30 21:23:17 +08:00
volumes:
- name: config
configMap:
name: {{ template "redis-ha.fullname" . }}-configmap