Files
service-catalog/charts/rancher/templates/preinstallHook/rolebinding.yaml
T
2024-12-12 09:31:48 +09:00

18 lines
460 B
YAML

{{- if .Values.preinstallHook }}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: create-tls-ca-rolebinding
annotations:
"helm.sh/hook": pre-install
"helm.sh/hook-weight": "-1"
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded,hook-failed
subjects:
- kind: ServiceAccount
name: create-tls-ca-sa
namespace: {{ .Release.Namespace }}
roleRef:
kind: Role
name: create-tls-ca-role
{{- end }}