Files
HetznerTerra/infrastructure/charts/rancher/templates/pre-upgrade-hook-cluster-role-binding.yaml
T

18 lines
592 B
YAML
Raw Normal View History

2026-04-25 23:08:26 +00:00
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ template "rancher.fullname" . }}-pre-upgrade
labels: {{ include "rancher.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": pre-upgrade
"helm.sh/hook-weight": "-1"
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ template "rancher.fullname" . }}-pre-upgrade
subjects:
- kind: ServiceAccount
name: {{ template "rancher.fullname" . }}-pre-upgrade
namespace: {{ .Release.Namespace }}