Add rancher labels to preinstallHook

This commit is contained in:
wbsong111
2024-12-19 15:39:47 +09:00
parent b37971d304
commit 1758638952
4 changed files with 11 additions and 7 deletions
@@ -2,16 +2,17 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: create-tls-ca-rolebinding
name: {{ template "rancher.fullname" . }}-create-tls-ca-rolebinding
labels: {{ include "rancher.labels" . | nindent 4 }}
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
name: {{ template "rancher.fullname" . }}-create-tls-ca-sa
namespace: {{ .Release.Namespace }}
roleRef:
kind: Role
name: create-tls-ca-role
name: {{ template "rancher.fullname" . }}-create-tls-ca-role
{{- end }}