2023-03-14 10:52:25 -04:00
|
|
|
{{- if empty .Values.flags.watchSingleNamespace }}
|
2023-01-17 14:36:04 -05:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2023-03-14 09:45:44 -04:00
|
|
|
name: {{ include "gha-runner-scale-set-controller.managerClusterRoleName" . }}
|
2023-01-17 14:36:04 -05:00
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- actions.github.com
|
|
|
|
|
resources:
|
|
|
|
|
- autoscalingrunnersets
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- delete
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- actions.github.com
|
|
|
|
|
resources:
|
|
|
|
|
- autoscalingrunnersets/finalizers
|
|
|
|
|
verbs:
|
2023-03-14 10:52:25 -04:00
|
|
|
- patch
|
2023-01-17 14:36:04 -05:00
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- actions.github.com
|
|
|
|
|
resources:
|
|
|
|
|
- autoscalingrunnersets/status
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- actions.github.com
|
|
|
|
|
resources:
|
|
|
|
|
- autoscalinglisteners
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- delete
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- actions.github.com
|
|
|
|
|
resources:
|
|
|
|
|
- autoscalinglisteners/status
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- actions.github.com
|
|
|
|
|
resources:
|
|
|
|
|
- autoscalinglisteners/finalizers
|
|
|
|
|
verbs:
|
2023-03-14 10:52:25 -04:00
|
|
|
- patch
|
2023-01-17 14:36:04 -05:00
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- actions.github.com
|
|
|
|
|
resources:
|
|
|
|
|
- ephemeralrunnersets
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- delete
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- actions.github.com
|
|
|
|
|
resources:
|
|
|
|
|
- ephemeralrunnersets/status
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2023-04-10 08:49:32 +02:00
|
|
|
- apiGroups:
|
|
|
|
|
- actions.github.com
|
|
|
|
|
resources:
|
|
|
|
|
- ephemeralrunnersets/finalizers
|
|
|
|
|
verbs:
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2023-01-17 14:36:04 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- actions.github.com
|
|
|
|
|
resources:
|
|
|
|
|
- ephemeralrunners
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- delete
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- actions.github.com
|
|
|
|
|
resources:
|
|
|
|
|
- ephemeralrunners/finalizers
|
|
|
|
|
verbs:
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- actions.github.com
|
|
|
|
|
resources:
|
|
|
|
|
- ephemeralrunners/status
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods
|
|
|
|
|
verbs:
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- serviceaccounts
|
|
|
|
|
verbs:
|
2023-03-09 17:23:32 +00:00
|
|
|
- list
|
|
|
|
|
- watch
|
2023-01-17 14:36:04 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- rbac.authorization.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- rolebindings
|
|
|
|
|
verbs:
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- rbac.authorization.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- roles
|
|
|
|
|
verbs:
|
|
|
|
|
- list
|
2023-03-09 17:23:32 +00:00
|
|
|
- watch
|
2023-04-03 21:06:12 +02:00
|
|
|
- patch
|
2023-03-14 10:52:25 -04:00
|
|
|
{{- end }}
|