apiVersion: v1
kind: Pod
metadata:
  name: test-{{ template "fullname" . }}-execute-tests
  annotations:
    sidecar.istio.io/inject: "false"
    "helm.sh/hook": test-success
  labels:
    "helm-chart-test": "true"
    "kyma-project.io/upgrade-e2e-test": "executeTests"
spec:
  serviceAccountName:  test-{{ template "fullname" . }}
  containers:
  - name: runner
    image: "{{ .Values.containerRegistry.path }}/{{ .Values.image.dir }}e2e-upgrade-test:{{ .Values.image.version }}"
    imagePullPolicy: "{{ .Values.image.pullPolicy}}"
    command: ["e2e-upgrade-test"]
    args: ["--action", "executeTests"]
    env:
    - name: APP_MAX_CONCURRENCY_LEVEL
      value: "1"
    - name: APP_LOGGER_LEVEL
      value: "info"
    - name: DOMAIN
      value: "{{ .Values.global.domainName }}"
  restartPolicy: Never
