diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index 798e3f36..cec4423a 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -1,57 +1,40 @@ --- apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole +kind: Role metadata: name: infrastructure-manager-role + namespace: kcp-system rules: - apiGroups: - - infrastructuremanager.kyma-project.io + - "" resources: - - runtimes + - secrets verbs: - create - delete - get - list - - patch - update - watch - apiGroups: - infrastructuremanager.kyma-project.io resources: - - runtimes/finalizers - verbs: - - update -- apiGroups: - - infrastructuremanager.kyma-project.io - resources: - - runtimes/status - verbs: - - get - - patch - - update ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: infrastructure-manager-role - namespace: kcp-system -rules: -- apiGroups: - - "" - resources: - - secrets + - gardenerclusters verbs: - create - delete - get - list + - patch - update - watch - apiGroups: - infrastructuremanager.kyma-project.io resources: - - gardenerclusters + - gardenerclusters/finalizers + - gardenerclusters/status + - runtimes/finalizers + - runtimes/status verbs: - create - delete @@ -59,11 +42,14 @@ rules: - list - patch - update - - watch - apiGroups: - infrastructuremanager.kyma-project.io resources: - - gardenerclusters/finalizers - - gardenerclusters/status + - runtimes verbs: + - create + - get + - list + - patch - update + - watch