{{- 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 }}