Merge "Exposed backoffLimit and restartPolicy in chart values"

This commit is contained in:
Zuul 2019-06-03 22:35:10 +00:00 committed by Gerrit Code Review
commit 3811eedefe
2 changed files with 7 additions and 1 deletions

View File

@ -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:

View File

@ -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: