github.com/kubevela/workflow@v0.6.0/charts/vela-workflow/templates/admission-webhooks/job-patch/clusterrolebinding.yaml (about) 1 {{- if and .Values.admissionWebhooks.enabled .Values.admissionWebhooks.patch.enabled .Values.rbac.create (not .Values.admissionWebhooks.certManager.enabled) }} 2 apiVersion: rbac.authorization.k8s.io/v1 3 kind: ClusterRoleBinding 4 metadata: 5 name: {{ template "kubevela.fullname" . }}-admission 6 annotations: 7 "helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade 8 "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded 9 labels: 10 app: {{ template "kubevela.name" . }}-admission 11 {{- include "kubevela.labels" . | nindent 4 }} 12 roleRef: 13 apiGroup: rbac.authorization.k8s.io 14 kind: ClusterRole 15 name: {{ template "kubevela.fullname" . }}-admission 16 subjects: 17 - kind: ServiceAccount 18 name: {{ template "kubevela.fullname" . }}-admission 19 namespace: {{ .Release.Namespace }} 20 {{- end }}