Add values for backoffLimit and restartPolicy in rally

Change-Id: I6a90e1c998e2785c4a28301d5ecbbacb5d6d9063
This commit is contained in:
josebb 2022-03-02 19:59:24 +02:00
parent 7d5c9bf03b
commit 71347880f3
4 changed files with 9 additions and 2 deletions

View File

@ -14,7 +14,7 @@ apiVersion: v1
appVersion: v1.0.0
description: OpenStack-Helm rally
name: rally
version: 0.2.1
version: 0.2.2
home: https://docs.openstack.org/developer/rally
icon: https://www.openstack.org/themes/openstack/images/project-mascots/rally/OpenStack_Project_rally_vertical.png
sources:

View File

@ -25,13 +25,14 @@ metadata:
annotations:
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
spec:
backoffLimit: {{ .Values.jobs.run_tasks.backoffLimit }}
template:
metadata:
labels:
{{ tuple $envAll "rally" "run-task" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
spec:
serviceAccountName: {{ $serviceAccountName }}
restartPolicy: OnFailure
restartPolicy: {{ .Values.jobs.run_tasks.restartPolicy }}
nodeSelector:
{{ .Values.labels.job.node_selector_key }}: {{ .Values.labels.job.node_selector_value }}
initContainers:

View File

@ -141,6 +141,11 @@ bootstrap:
script: |
openstack token issue
jobs:
run_tasks:
backoffLimit: 6
restartPolicy: OnFailure
dependencies:
dynamic:
common:

View File

@ -4,4 +4,5 @@ rally:
- 0.1.1 Change helm-toolkit dependency version to ">= 0.1.0"
- 0.2.0 Remove support for releases before T
- 0.2.1 Update htk requirements repo
- 0.2.2 Add values for backoffLimit and restartPolicy
...