[cinder,glance] 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: I44331e00c288b517fccf69a4b60435efa2e13d61
This commit is contained in:
parent
25e806a997
commit
938d0a1390
@ -18,9 +18,7 @@ limitations under the License.
|
|||||||
{{- $envAll := . }}
|
{{- $envAll := . }}
|
||||||
{{ if or (eq .Values.conf.cinder.DEFAULT.backup_driver "cinder.backup.drivers.ceph") (include "cinder.utils.is_ceph_volume_configured" $envAll) }}
|
{{ if or (eq .Values.conf.cinder.DEFAULT.backup_driver "cinder.backup.drivers.ceph") (include "cinder.utils.is_ceph_volume_configured" $envAll) }}
|
||||||
|
|
||||||
{{- $randStringSuffix := randAlphaNum 5 | lower }}
|
{{- $serviceAccountName := print "cinder-clean" }}
|
||||||
|
|
||||||
{{- $serviceAccountName := print "cinder-clean-" $randStringSuffix }}
|
|
||||||
{{ tuple $envAll "clean" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
{{ tuple $envAll "clean" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||||
@ -52,7 +50,7 @@ subjects:
|
|||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ print "cinder-clean-" $randStringSuffix }}
|
name: {{ print "cinder-clean" }}
|
||||||
annotations:
|
annotations:
|
||||||
"helm.sh/hook": pre-delete
|
"helm.sh/hook": pre-delete
|
||||||
"helm.sh/hook-delete-policy": hook-succeeded
|
"helm.sh/hook-delete-policy": hook-succeeded
|
||||||
|
@ -18,9 +18,7 @@ limitations under the License.
|
|||||||
{{- $envAll := . }}
|
{{- $envAll := . }}
|
||||||
{{- if .Values.bootstrap.enabled }}
|
{{- if .Values.bootstrap.enabled }}
|
||||||
|
|
||||||
{{- $randStringSuffix := randAlphaNum 5 | lower }}
|
{{- $serviceAccountName := print "glance-clean" }}
|
||||||
|
|
||||||
{{- $serviceAccountName := print "glance-clean-" $randStringSuffix }}
|
|
||||||
{{ tuple $envAll "clean" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
{{ tuple $envAll "clean" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||||
@ -52,7 +50,7 @@ subjects:
|
|||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ print "glance-clean-" $randStringSuffix }}
|
name: {{ print "glance-clean" }}
|
||||||
annotations:
|
annotations:
|
||||||
"helm.sh/hook": pre-delete
|
"helm.sh/hook": pre-delete
|
||||||
"helm.sh/hook-delete-policy": hook-succeeded
|
"helm.sh/hook-delete-policy": hook-succeeded
|
||||||
|
Loading…
Reference in New Issue
Block a user