From 8fb5b34c773f89ee338e88dbd183611562b9f7c4 Mon Sep 17 00:00:00 2001 From: dunemask Date: Sat, 7 Oct 2023 17:52:47 +0000 Subject: [PATCH] [FIX] Remove ClusterRole (#3) Co-authored-by: dunemask Reviewed-on: https://gitea.dunemask.dev/elysium/minecluster/pulls/3 --- templates/{clusterrole-binding.yaml => role-binding.yaml} | 4 ++-- templates/{clusterrole.yaml => role.yaml} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename templates/{clusterrole-binding.yaml => role-binding.yaml} (90%) rename templates/{clusterrole.yaml => role.yaml} (97%) diff --git a/templates/clusterrole-binding.yaml b/templates/role-binding.yaml similarity index 90% rename from templates/clusterrole-binding.yaml rename to templates/role-binding.yaml index a08acd0..2bbd293 100644 --- a/templates/clusterrole-binding.yaml +++ b/templates/role-binding.yaml @@ -1,6 +1,6 @@ {{- if .Values.serviceAccount.create -}} apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding +kind: RoleBinding metadata: name: {{ include "minecluster.serviceAccountName" . }} subjects: @@ -8,7 +8,7 @@ subjects: name: {{ include "minecluster.serviceAccountName" . }} namespace: {{ .Values.mcl.deploymentNamespace | default .Release.Namespace }} roleRef: - kind: ClusterRole + kind: Role name: {{ include "minecluster.serviceAccountName" . }} apiGroup: rbac.authorization.k8s.io {{- end }} diff --git a/templates/clusterrole.yaml b/templates/role.yaml similarity index 97% rename from templates/clusterrole.yaml rename to templates/role.yaml index e5e877a..cccb8dd 100644 --- a/templates/clusterrole.yaml +++ b/templates/role.yaml @@ -1,6 +1,6 @@ {{- if .Values.serviceAccount.create -}} apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole +kind: Role metadata: name: {{ include "minecluster.serviceAccountName" . }} rules: