charts/velero-5.1.3/templates/upgrade-crds/serviceaccount-upgrade.yaml
2024-02-09 21:56:31 +08:00

23 lines
813 B
YAML

{{- if .Values.upgradeCRDs }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "velero.serverServiceAccount" . }}-upgrade-crds
namespace: {{ .Release.Namespace }}
annotations:
"helm.sh/hook": pre-install,pre-upgrade,pre-rollback
"helm.sh/hook-weight": "-4"
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
{{- if .Values.serviceAccount.server.annotations }}
{{ toYaml .Values.serviceAccount.server.annotations | nindent 4 }}
{{- end }}
labels:
app.kubernetes.io/name: {{ include "velero.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "velero.chart" . }}
{{- with .Values.serviceAccount.server.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}