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:
|
annotations:
|
||||||
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
|
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
|
||||||
spec:
|
spec:
|
||||||
|
backoffLimit: {{ .Values.jobs.run_tests.backoffLimit }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
{{ tuple $envAll "tempest" "run-tests" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
{{ tuple $envAll "tempest" "run-tests" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: {{ $serviceAccountName }}
|
serviceAccountName: {{ $serviceAccountName }}
|
||||||
restartPolicy: OnFailure
|
restartPolicy: {{ .Values.jobs.run_tests.restartPolicy }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{ .Values.labels.job.node_selector_key }}: {{ .Values.labels.job.node_selector_value }}
|
{{ .Values.labels.job.node_selector_key }}: {{ .Values.labels.job.node_selector_value }}
|
||||||
initContainers:
|
initContainers:
|
||||||
|
@ -35,6 +35,11 @@ images:
|
|||||||
- dep_check
|
- dep_check
|
||||||
- image_repo_sync
|
- image_repo_sync
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
run_tests:
|
||||||
|
backoffLimit: 6
|
||||||
|
restartPolicy: OnFailure
|
||||||
|
|
||||||
pod:
|
pod:
|
||||||
user:
|
user:
|
||||||
tempest:
|
tempest:
|
||||||
|
Loading…
Reference in New Issue
Block a user