Add preinstall hook to rancher chart
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
{{- if .Values.preinstallHook }}
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: create-tls-ca-role
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install
|
||||
"helm.sh/hook-weight": "-2"
|
||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded,hook-failed
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets"]
|
||||
verbs: ["get", "create", "update", "patch", "list"]
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user