Fix namespaced Role and non-namespaces ClusterRoleBindig in helm chart
This commit is contained in:
parent
c03fac8fdd
commit
c4ddc97e62
|
|
@ -6,7 +6,9 @@ kind: ClusterRoleBinding
|
|||
{{- end }}
|
||||
metadata:
|
||||
name: {{ include "actions-runner-controller.managerRoleName" . }}-secrets
|
||||
{{- if .Values.scope.singleNamespace }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
{{- end }}
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
{{- if .Values.scope.singleNamespace }}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ kind: ClusterRole
|
|||
metadata:
|
||||
creationTimestamp: null
|
||||
name: {{ include "actions-runner-controller.managerRoleName" . }}-secrets
|
||||
{{- if .Values.scope.singleNamespace }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
{{- end }}
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
|
|
@ -21,4 +24,4 @@ rules:
|
|||
{{/* See https://github.com/actions/actions-runner-controller/pull/1268/files#r917331632 */}}
|
||||
- create
|
||||
- delete
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue