github.com/kubevela/workflow@v0.6.0/charts/vela-workflow/templates/admission-webhooks/job-patch/rolebinding.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: RoleBinding
     4  metadata:
     5    name:  {{ template "kubevela.fullname" . }}-admission
     6    namespace: {{ .Release.Namespace }}
     7    annotations:
     8      "helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
     9      "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
    10    labels:
    11      app: {{ template "kubevela.name" . }}-admission
    12      {{- include "kubevela.labels" . | nindent 4 }}
    13  roleRef:
    14    apiGroup: rbac.authorization.k8s.io
    15    kind: Role
    16    name: {{ template "kubevela.fullname" . }}-admission
    17  subjects:
    18    - kind: ServiceAccount
    19      name: {{ template "kubevela.fullname" . }}-admission
    20      namespace: {{ .Release.Namespace }}
    21  {{- end }}