github.com/kubevela/workflow@v0.6.0/charts/vela-workflow/templates/admission-webhooks/job-patch/role.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: Role 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 rules: 14 - apiGroups: 15 - "" 16 resources: 17 - secrets 18 verbs: 19 - get 20 - create 21 {{- end }}