diff --git a/gnocchi/templates/job-clean.yaml b/gnocchi/templates/job-clean.yaml index c0e76bea9..6ff83aa66 100644 --- a/gnocchi/templates/job-clean.yaml +++ b/gnocchi/templates/job-clean.yaml @@ -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