From bea17bf8936e4fb453f2c3fea6d6ef7a43cf3601 Mon Sep 17 00:00:00 2001 From: MateSousa Date: Wed, 29 Nov 2023 21:34:27 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(k8sgpt-cluster-role-binding.ya?= =?UTF-8?q?ml):=20add=20new=20Kubernetes=20ClusterRoleBinding=20configurat?= =?UTF-8?q?ion=20The=20new=20ClusterRoleBinding=20configuration=20file=20i?= =?UTF-8?q?s=20added=20to=20manage=20permissions=20for=20the=20service=20a?= =?UTF-8?q?ccount=20"k8sgpt".=20This=20change=20allows=20the=20service=20a?= =?UTF-8?q?ccount=20to=20have=20the=20necessary=20permissions=20to=20perfo?= =?UTF-8?q?rm=20its=20tasks=20within=20the=20specified=20namespace,=20impr?= =?UTF-8?q?oving=20the=20security=20and=20management=20of=20the=20Kubernet?= =?UTF-8?q?es=20cluster.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/k8sgpt-cluster-role-binding.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 chart/operator/templates/k8sgpt-cluster-role-binding.yaml diff --git a/chart/operator/templates/k8sgpt-cluster-role-binding.yaml b/chart/operator/templates/k8sgpt-cluster-role-binding.yaml new file mode 100644 index 00000000..a911be8f --- /dev/null +++ b/chart/operator/templates/k8sgpt-cluster-role-binding.yaml @@ -0,0 +1,14 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: {{ include "chart.fullname" . }}-k8sgpt + labels: + {{- include "chart.labels" . | nindent 4 }} +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ include "chart.fullname" . }}-k8sgpt +subjects: + - kind: ServiceAccount + name: "k8sgpt" + namespace: {{ .Release.Namespace }}