diff --git a/charts/actions-runner-controller/templates/githubwebhook.role_binding.yaml b/charts/actions-runner-controller/templates/githubwebhook.role_binding.yaml new file mode 100644 index 00000000..24a69456 --- /dev/null +++ b/charts/actions-runner-controller/templates/githubwebhook.role_binding.yaml @@ -0,0 +1,14 @@ +{{- if .Values.githubWebhookServer.enabled }} +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: {{ include "actions-runner-controller-github-webhook-server.roleName" . }} +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ include "actions-runner-controller-github-webhook-server.roleName" . }} +subjects: + - kind: ServiceAccount + name: {{ include "actions-runner-controller-github-webhook-server.serviceAccountName" . }} + namespace: {{ .Release.Namespace }} +{{- end }}