Support the controller to watching a single namespace. (#2374)

This commit is contained in:
Tingluo Huang
2023-03-14 10:52:25 -04:00
committed by GitHub
parent 3417c5a3a8
commit 40811ebe0e
14 changed files with 666 additions and 35 deletions

View File

@@ -1,3 +1,4 @@
{{- if empty .Values.flags.watchSingleNamespace }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
@@ -20,6 +21,7 @@ rules:
resources:
- autoscalingrunnersets/finalizers
verbs:
- patch
- update
- apiGroups:
- actions.github.com
@@ -54,6 +56,7 @@ rules:
resources:
- autoscalinglisteners/finalizers
verbs:
- patch
- update
- apiGroups:
- actions.github.com
@@ -92,13 +95,8 @@ rules:
resources:
- ephemeralrunners/finalizers
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- actions.github.com
resources:
@@ -135,3 +133,4 @@ rules:
verbs:
- list
- watch
{{- end }}