From 792e48d366089b1fd4d0adadba1adc1dfe7ab8c7 Mon Sep 17 00:00:00 2001 From: Justin Brooks Date: Thu, 24 Aug 2023 00:24:20 -0400 Subject: [PATCH] fix: Console permission not assign correctly --- charts/operator-wandb/Chart.yaml | 2 +- .../charts/console/templates/clusterrolebinding.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/charts/operator-wandb/Chart.yaml b/charts/operator-wandb/Chart.yaml index b12f5497..e1bafabc 100644 --- a/charts/operator-wandb/Chart.yaml +++ b/charts/operator-wandb/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: operator-wandb description: A Helm chart for deploying W&B to Kubernetes type: application -version: 0.1.8 +version: 0.1.9 appVersion: 1.0.0 icon: https://wandb.ai/logo.svg maintainers: diff --git a/charts/operator-wandb/charts/console/templates/clusterrolebinding.yaml b/charts/operator-wandb/charts/console/templates/clusterrolebinding.yaml index 12b87933..e7049a4c 100644 --- a/charts/operator-wandb/charts/console/templates/clusterrolebinding.yaml +++ b/charts/operator-wandb/charts/console/templates/clusterrolebinding.yaml @@ -13,11 +13,11 @@ metadata: {{- if .Values.clusterRole.annotations -}} {{- toYaml .Values.clusterRole.annotations | nindent 4 }} {{- end }} -subjects: - - kind: Group - name: manager # Name is case sensitive - apiGroup: rbac.authorization.k8s.io roleRef: kind: ClusterRole - name: {{ include "console.fullname" . }} apiGroup: rbac.authorization.k8s.io + name: {{ include "console.fullname" . }} +subjects: + - kind: ServiceAccount + name: {{ include "console.fullname" . }} + namespace: {{ .Release.Namespace }}