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: ClusterRoleBinding
metadata:
@@ -9,4 +10,5 @@ roleRef:
subjects:
- kind: ServiceAccount
name: {{ include "gha-runner-scale-set-controller.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
namespace: {{ .Release.Namespace }}
{{- end }}