Exposed backoffLimit and restartPolicy in chart values
This change allows the restartPolicy of the tempest test pod to be set to Never, bringing it in line with other test pod behavior, like rally. If set to OnFailure, test pods are often deleted before logs can be viewed. Change-Id: I312b93784d27109452b2076658e5655210a92b48
This commit is contained in:
parent
1292da06d5
commit
8938b35e3b
@ -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:
|
||||
|
@ -35,6 +35,11 @@ images:
|
||||
- dep_check
|
||||
- image_repo_sync
|
||||
|
||||
jobs:
|
||||
run_tests:
|
||||
backoffLimit: 6
|
||||
restartPolicy: OnFailure
|
||||
|
||||
pod:
|
||||
user:
|
||||
tempest:
|
||||
|
Loading…
Reference in New Issue
Block a user