diff --git a/tempest/templates/job-run-tests.yaml b/tempest/templates/job-run-tests.yaml index f2ed054d7a..b63dd1c1d6 100644 --- a/tempest/templates/job-run-tests.yaml +++ b/tempest/templates/job-run-tests.yaml @@ -28,13 +28,14 @@ metadata: annotations: {{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }} spec: + backoffLimit: {{ .Values.jobs.run_tests.backoffLimit }} template: metadata: labels: {{ tuple $envAll "tempest" "run-tests" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }} spec: serviceAccountName: {{ $serviceAccountName }} - restartPolicy: OnFailure + restartPolicy: {{ .Values.jobs.run_tests.restartPolicy }} nodeSelector: {{ .Values.labels.job.node_selector_key }}: {{ .Values.labels.job.node_selector_value }} initContainers: diff --git a/tempest/values.yaml b/tempest/values.yaml index fba3b83d80..fdaa27a060 100644 --- a/tempest/values.yaml +++ b/tempest/values.yaml @@ -35,6 +35,11 @@ images: - dep_check - image_repo_sync +jobs: + run_tests: + backoffLimit: 6 + restartPolicy: OnFailure + pod: user: tempest: