forked from actions/actions-runner-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CR and CRB to the helm chart (actions#2504)
In response to actions#2212 , the ARC helm chart is missing ClusterRoleBinding and ClusterRole for the ActionsMetricsServer resulting on missing permissions. This also fix the labels of the ActionsMetricsServer Service as it is selected by the ServiceMonitor with those labels. Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
- Loading branch information
Showing
3 changed files
with
105 additions
and
1 deletion.
There are no files selected for viewing
90 changes: 90 additions & 0 deletions
90
charts/actions-runner-controller/templates/actionsmetrics.role.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{{- if .Values.actionsMetricsServer.enabled }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
creationTimestamp: null | ||
name: {{ include "actions-runner-controller-actions-metrics-server.roleName" . }} | ||
rules: | ||
- apiGroups: | ||
- actions.summerwind.dev | ||
resources: | ||
- horizontalrunnerautoscalers | ||
verbs: | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- actions.summerwind.dev | ||
resources: | ||
- horizontalrunnerautoscalers/finalizers | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- actions.summerwind.dev | ||
resources: | ||
- horizontalrunnerautoscalers/status | ||
verbs: | ||
- get | ||
- patch | ||
- update | ||
- apiGroups: | ||
- actions.summerwind.dev | ||
resources: | ||
- runnersets | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- actions.summerwind.dev | ||
resources: | ||
- runnerdeployments | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- actions.summerwind.dev | ||
resources: | ||
- runnerdeployments/finalizers | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- actions.summerwind.dev | ||
resources: | ||
- runnerdeployments/status | ||
verbs: | ||
- get | ||
- patch | ||
- update | ||
- apiGroups: | ||
- authentication.k8s.io | ||
resources: | ||
- tokenreviews | ||
verbs: | ||
- create | ||
- apiGroups: | ||
- authorization.k8s.io | ||
resources: | ||
- subjectaccessreviews | ||
verbs: | ||
- create | ||
{{- end }} |
14 changes: 14 additions & 0 deletions
14
charts/actions-runner-controller/templates/actionsmetrics.role_binding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{- if .Values.actionsMetricsServer.enabled }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ include "actions-runner-controller-actions-metrics-server.roleName" . }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: {{ include "actions-runner-controller-actions-metrics-server.roleName" . }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "actions-runner-controller-actions-metrics-server.serviceAccountName" . }} | ||
namespace: {{ .Release.Namespace }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters