From 3ad6c8b4d0a8ec0361e861916d514b1f07d7d5c4 Mon Sep 17 00:00:00 2001 From: Chris Dabre Date: Fri, 12 Sep 2025 12:05:05 -0700 Subject: [PATCH] testing arc controller without manager role and its binding --- .../templates/manager_role.yaml | 93 ------------------- .../templates/manager_role_binding.yaml | 36 ------- 2 files changed, 129 deletions(-) delete mode 100644 charts/gha-runner-scale-set/templates/manager_role.yaml delete mode 100644 charts/gha-runner-scale-set/templates/manager_role_binding.yaml diff --git a/charts/gha-runner-scale-set/templates/manager_role.yaml b/charts/gha-runner-scale-set/templates/manager_role.yaml deleted file mode 100644 index 8696efa1..00000000 --- a/charts/gha-runner-scale-set/templates/manager_role.yaml +++ /dev/null @@ -1,93 +0,0 @@ -{{- $hasCustomResourceMeta := (and .Values.resourceMeta .Values.resourceMeta.managerRole) }} -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: {{ include "gha-runner-scale-set.managerRoleName" . }} - namespace: {{ include "gha-runner-scale-set.namespace" . }} - labels: - {{- with .Values.labels }} - {{- toYaml . | nindent 4 }} - {{- end }} - {{- if $hasCustomResourceMeta }} - {{- with .Values.resourceMeta.managerRole.labels }} - {{- toYaml . | nindent 4 }} - {{- end }} - {{- end }} - {{- include "gha-runner-scale-set.labels" . | nindent 4 }} - app.kubernetes.io/component: manager-role - annotations: - {{- with .Values.annotations }} - {{- toYaml . | nindent 4 }} - {{- end }} - {{- if $hasCustomResourceMeta }} - {{- with .Values.resourceMeta.managerRole.annotations }} - {{- toYaml . | nindent 4 }} - {{- end }} - {{- end }} - finalizers: - - actions.github.com/cleanup-protection -rules: -- apiGroups: - - "" - resources: - - pods - verbs: - - create - - delete - - get -- apiGroups: - - "" - resources: - - pods/status - verbs: - - get -- apiGroups: - - "" - resources: - - secrets - verbs: - - create - - delete - - get - - list - - patch - - update -- apiGroups: - - "" - resources: - - serviceaccounts - verbs: - - create - - delete - - get - - list - - patch - - update -- apiGroups: - - rbac.authorization.k8s.io - resources: - - rolebindings - verbs: - - create - - delete - - get - - patch - - update -- apiGroups: - - rbac.authorization.k8s.io - resources: - - roles - verbs: - - create - - delete - - get - - patch - - update -{{- if .Values.githubServerTLS }} -- apiGroups: - - "" - resources: - - configmaps - verbs: - - get -{{- end }} diff --git a/charts/gha-runner-scale-set/templates/manager_role_binding.yaml b/charts/gha-runner-scale-set/templates/manager_role_binding.yaml deleted file mode 100644 index 6da367b6..00000000 --- a/charts/gha-runner-scale-set/templates/manager_role_binding.yaml +++ /dev/null @@ -1,36 +0,0 @@ -{{- $hasCustomResourceMeta := (and .Values.resourceMeta .Values.resourceMeta.managerRoleBinding) }} -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: {{ include "gha-runner-scale-set.managerRoleBindingName" . }} - namespace: {{ include "gha-runner-scale-set.namespace" . }} - labels: - {{- with .Values.labels }} - {{- toYaml . | nindent 4 }} - {{- end }} - {{- if $hasCustomResourceMeta }} - {{- with .Values.resourceMeta.managerRoleBinding.labels }} - {{- toYaml . | nindent 4 }} - {{- end }} - {{- end }} - {{- include "gha-runner-scale-set.labels" . | nindent 4 }} - app.kubernetes.io/component: manager-role-binding - annotations: - {{- with .Values.annotations }} - {{- toYaml . | nindent 4 }} - {{- end }} - {{- if $hasCustomResourceMeta }} - {{- with .Values.resourceMeta.managerRoleBinding.annotations }} - {{- toYaml . | nindent 4 }} - {{- end }} - {{- end }} - finalizers: - - actions.github.com/cleanup-protection -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: {{ include "gha-runner-scale-set.managerRoleName" . }} -subjects: -- kind: ServiceAccount - name: {{ include "gha-runner-scale-set.managerServiceAccountName" . | nindent 4 }} - namespace: {{ include "gha-runner-scale-set.managerServiceAccountNamespace" . | nindent 4 }}