github.com/replicatedcom/ship@v0.50.0/integration/update/helm-values-files-and-new-files/expected/.ship/upstream/templates/jenkins-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 .Values.Master.NodeSelector }} 9 nodeSelector: 10 {{ toYaml .Values.Master.NodeSelector | indent 4 }} 11 {{- end }} 12 {{- if .Values.Master.Tolerations }} 13 tolerations: 14 {{ toYaml .Values.Master.Tolerations | indent 4 }} 15 {{- end }} 16 initContainers: 17 - name: "test-framework" 18 image: "dduportal/bats:0.4.0" 19 command: 20 - "bash" 21 - "-c" 22 - | 23 set -ex 24 # copy bats to tools dir 25 cp -R /usr/local/libexec/ /tools/bats/ 26 volumeMounts: 27 - mountPath: /tools 28 name: tools 29 containers: 30 - name: {{ .Release.Name }}-ui-test 31 image: {{ .Values.Master.Image }}:{{ .Values.Master.ImageTag }} 32 command: ["/tools/bats/bats", "-t", "/tests/run.sh"] 33 volumeMounts: 34 - mountPath: /tests 35 name: tests 36 readOnly: true 37 - mountPath: /tools 38 name: tools 39 volumes: 40 - name: tests 41 configMap: 42 name: {{ template "jenkins.fullname" . }}-tests 43 - name: tools 44 emptyDir: {} 45 restartPolicy: Never