You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

test-redis-ha-configmap.yaml 672 B

123456789101112131415161718192021222324252627
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: {{ template "redis-ha.fullname" . }}-configmap-test
  5. labels:
  6. {{ include "labels.standard" . | indent 4 }}
  7. annotations:
  8. "helm.sh/hook": test-success
  9. spec:
  10. containers:
  11. - name: check-init
  12. image: koalaman/shellcheck:v0.5.0
  13. args:
  14. - --shell=sh
  15. - /readonly-config/init.sh
  16. volumeMounts:
  17. - name: config
  18. mountPath: /readonly-config
  19. readOnly: true
  20. {{- if .Values.imagePullSecrets }}
  21. imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 4 }}
  22. {{- end }}
  23. restartPolicy: Never
  24. volumes:
  25. - name: config
  26. configMap:
  27. name: {{ template "redis-ha.fullname" . }}-configmap