From 10dc309ea99f45f2faa1ac2dc8481bcfcaeaef75 Mon Sep 17 00:00:00 2001 From: Yuhuuu Wkwk Date: Thu, 30 May 2024 16:40:51 +0700 Subject: [PATCH] [charts/metabase] Add autoMount SA and upgrade metabase version --- charts/metabase/Chart.yaml | 4 ++-- charts/metabase/templates/deployment.yaml | 1 + charts/metabase/templates/serviceaccount.yaml | 1 + charts/metabase/values.yaml | 8 ++++++++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/charts/metabase/Chart.yaml b/charts/metabase/Chart.yaml index 00424a3..6b881bf 100644 --- a/charts/metabase/Chart.yaml +++ b/charts/metabase/Chart.yaml @@ -3,8 +3,8 @@ description: The easy, open source way for everyone in your company to ask questions and learn from data. name: metabase -version: 2.15.6 -appVersion: v0.49.12 +version: 2.15.7 +appVersion: v0.49.13 maintainers: - name: pmint93 email: phamminhthanh69@gmail.com diff --git a/charts/metabase/templates/deployment.yaml b/charts/metabase/templates/deployment.yaml index 7874e09..1a6c966 100644 --- a/charts/metabase/templates/deployment.yaml +++ b/charts/metabase/templates/deployment.yaml @@ -307,6 +307,7 @@ spec: priorityClassName: {{ .Values.priorityClass }} {{- end }} serviceAccountName: {{ template "metabase.serviceAccountName" . }} + automountServiceAccountToken: {{ .Values.automountServiceAccountToken }} volumes: {{- if or .Values.log4jProperties .Values.log4j2XML }} - name: config diff --git a/charts/metabase/templates/serviceaccount.yaml b/charts/metabase/templates/serviceaccount.yaml index 7ae2fba..4c3da80 100644 --- a/charts/metabase/templates/serviceaccount.yaml +++ b/charts/metabase/templates/serviceaccount.yaml @@ -1,6 +1,7 @@ {{- if .Values.serviceAccount.create -}} apiVersion: v1 kind: ServiceAccount +automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }} metadata: name: {{ include "metabase.serviceAccountName" . }} namespace: {{ .Release.Namespace }} diff --git a/charts/metabase/values.yaml b/charts/metabase/values.yaml index c333fd2..0707ca9 100644 --- a/charts/metabase/values.yaml +++ b/charts/metabase/values.yaml @@ -234,6 +234,10 @@ serviceAccount: # The name of the service account to use. # If not set and create is true, a name is generated using the fullname template name: + # autoMount is deprecated in favor of automountServiceAccountToken + # If you want to disable auto mount of Service Account Token then you can set the value to false; + # https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#opt-out-of-api-credential-automounting + automountServiceAccountToken: false resources: {} @@ -248,6 +252,10 @@ resources: # cpu: 100m # memory: 128Mi +# You can also opt out of automounting API credentials for a particular Pod; +# https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#opt-out-of-api-credential-automounting +automountServiceAccountToken: true + ## Node labels for pod assignment ## ref: https://kubernetes.io/docs/user-guide/node-selection/ #