[gnocchi] don't randomize job names

Random job names mean `helm upgrade` or indeed anything looks for
changes from rendered templates will see changes when there are none
causing churn and restarts.

Change-Id: I59e6a60d6c4c601c5c8cecbd8238af6b7c5f389e
This commit is contained in:
Chris Wedgwood 2018-10-17 03:51:03 +00:00
parent 80d5b4a84e
commit 6a6b9db2da

View File

@ -17,9 +17,7 @@ limitations under the License.
{{- if .Values.manifests.job_clean }}
{{- $envAll := . }}
{{- $randStringSuffix := randAlphaNum 5 | lower }}
{{- $serviceAccountName := print "gnocchi-clean-" $randStringSuffix }}
{{- $serviceAccountName := print "gnocchi-clean" }}
{{ tuple $envAll "clean" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
---
apiVersion: rbac.authorization.k8s.io/v1beta1
@ -51,7 +49,7 @@ subjects:
apiVersion: batch/v1
kind: Job
metadata:
name: {{ print "gnocchi-clean-" $randStringSuffix }}
name: {{ print "gnocchi-clean" }}
annotations:
"helm.sh/hook": pre-delete
"helm.sh/hook-delete-policy": hook-succeeded