From 9ff7ae73283c19970163b30b9bd078a7a28b0e45 Mon Sep 17 00:00:00 2001 From: Jeremy Roberts Date: Mon, 2 Mar 2020 23:05:37 -0500 Subject: [PATCH] [stable/influxdb] Additional auth job variables (#21075) * Adding hookDeletePolicy variable. Signed-off-by: Jeremy Roberts * Adding backoffLimit variable. Signed-off-by: Jeremy Roberts * Bumping chart version. Signed-off-by: Jeremy Roberts --- stable/influxdb/Chart.yaml | 2 +- stable/influxdb/templates/post-install-set-auth.yaml | 3 ++- stable/influxdb/values.yaml | 10 ++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/stable/influxdb/Chart.yaml b/stable/influxdb/Chart.yaml index b33b0c9ca6..957073ac4b 100755 --- a/stable/influxdb/Chart.yaml +++ b/stable/influxdb/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: influxdb -version: 4.2.4 +version: 4.3.0 appVersion: 1.7.9 description: Scalable datastore for metrics, events, and real-time analytics. keywords: diff --git a/stable/influxdb/templates/post-install-set-auth.yaml b/stable/influxdb/templates/post-install-set-auth.yaml index 59787318a9..aa77667d93 100644 --- a/stable/influxdb/templates/post-install-set-auth.yaml +++ b/stable/influxdb/templates/post-install-set-auth.yaml @@ -7,9 +7,10 @@ metadata: {{- include "influxdb.labels" . | nindent 4 }} annotations: "helm.sh/hook": post-install - "helm.sh/hook-delete-policy": hook-succeeded + "helm.sh/hook-delete-policy": {{ .Values.setDefaultUser.hookDeletePolicy }} spec: activeDeadlineSeconds: {{ .Values.setDefaultUser.activeDeadlineSeconds }} + backoffLimit: {{ .Values.setDefaultUser.backoffLimit }} template: metadata: labels: diff --git a/stable/influxdb/values.yaml b/stable/influxdb/values.yaml index b68602cd1c..d7ba43f9a9 100644 --- a/stable/influxdb/values.yaml +++ b/stable/influxdb/values.yaml @@ -98,6 +98,16 @@ setDefaultUser: ## activeDeadline: 300 + ## Specify the number of retries before considering job as failed. + ## https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#pod-backoff-failure-policy + ## + backoffLimit: 6 + + ## Hook delete policy for helm. + ## Default: hookDeletePolicy: hook-succeeded + ## + hookDeletePolicy: hook-succeeded + ## Restart policy for job ## Default: OnFailure restartPolicy: OnFailure