diff --git a/config/rbac/edit_role_binding.yaml b/config/rbac/edit_role_binding.yaml deleted file mode 100644 index 640ae1ba4..000000000 --- a/config/rbac/edit_role_binding.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: manager-edit-rolebinding -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: edit -subjects: - - kind: ServiceAccount - name: controller-manager - namespace: system diff --git a/config/rbac/kustomization.yaml b/config/rbac/kustomization.yaml index a0ff39ff0..05bf4c6cf 100644 --- a/config/rbac/kustomization.yaml +++ b/config/rbac/kustomization.yaml @@ -9,6 +9,5 @@ resources: - role_binding.yaml - instascale_role.yaml - instascale_role_binding.yaml -- edit_role_binding.yaml # We are using this binding as mcad requires this role - leader_election_role.yaml - leader_election_role_binding.yaml diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index 1393982c4..07954b370 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -18,6 +18,17 @@ rules: - patch - update - watch +- apiGroups: + - batch + resources: + - jobs + verbs: + - create + - delete + - list + - patch + - update + - watch - apiGroups: - apps resources: