github.com/replicatedcom/ship@v0.50.0/integration/base/shipapp-helm-values/expected/installer/consul/templates/consul-test.yaml (about) 1 apiVersion: v1 2 kind: Pod 3 metadata: 4 name: "{{ .Release.Name }}-ui-test-{{ randAlphaNum 5 | lower }}" 5 annotations: 6 "helm.sh/hook": test-success 7 spec: 8 {{- if or .Values.test.rbac.create .Values.test.rbac.serviceAccountName }} 9 serviceAccountName: {{ if .Values.test.rbac.create }}{{ template "consul.fullname" . }}-test{{ else }}"{{ .Values.test.rbac.serviceAccountName }}"{{ end }} 10 {{- end }} 11 initContainers: 12 - name: test-framework 13 image: dduportal/bats:0.4.0 14 command: 15 - "bash" 16 - "-c" 17 - | 18 set -ex 19 # copy bats to tools dir 20 cp -R /usr/local/libexec/ /tools/bats/ 21 volumeMounts: 22 - mountPath: /tools 23 name: tools 24 containers: 25 - name: {{ .Release.Name }}-ui-test 26 image: {{ .Values.test.image }}:{{ .Values.test.imageTag }} 27 command: ["/tools/bats/bats", "-t", "/tests/run.sh"] 28 volumeMounts: 29 - mountPath: /tests 30 name: tests 31 readOnly: true 32 - mountPath: /tools 33 name: tools 34 volumes: 35 - name: tests 36 configMap: 37 name: {{ template "consul.fullname" . }}-tests 38 - name: tools 39 emptyDir: {} 40 restartPolicy: Never