From 308a4cdf1dbb59f8c29b5cf72c5b38df70e22519 Mon Sep 17 00:00:00 2001 From: z30057876 Date: Thu, 24 Apr 2025 20:36:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0chart?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../authhub/configs/backend/copy-config.yml | 18 +++++++++++++++--- .../templates/backend/authhub-backend.yaml | 8 +++----- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/deploy/chart/authhub/configs/backend/copy-config.yml b/deploy/chart/authhub/configs/backend/copy-config.yml index 74cd50192..43d4e14c8 100644 --- a/deploy/chart/authhub/configs/backend/copy-config.yml +++ b/deploy/chart/authhub/configs/backend/copy-config.yml @@ -1,7 +1,19 @@ copy: - - from: /config - to: /config-rw + - from: /config/aops-config.yaml + to: /config-rw/aops-config.yaml mode: uid: 0 gid: 0 - mode: "0o650" \ No newline at end of file + mode: "0o650" + secrets: + - /db-secrets + - /authhub-secrets + - from: /config/conf.d/authhub.yaml + to: /config-rw/conf.d/authhub.yaml + mode: + uid: 0 + gid: 0 + mode: "0o650" + secrets: + - /db-secrets + - /authhub-secrets diff --git a/deploy/chart/authhub/templates/backend/authhub-backend.yaml b/deploy/chart/authhub/templates/backend/authhub-backend.yaml index 54884d24b..8cfc36faa 100644 --- a/deploy/chart/authhub/templates/backend/authhub-backend.yaml +++ b/deploy/chart/authhub/templates/backend/authhub-backend.yaml @@ -64,12 +64,10 @@ spec: image: {{ .Values.authhub.secret_inject.image | default (printf "%s/neocopilot/secret_inject:dev-%s" (.Values.globals.imageRegistry | default "hub.oepkgs.net") (ternary "arm" "x86" (eq (.Values.globals.arch | default "x86") "arm"))) }} imagePullPolicy: {{ default "IfNotPresent" .Values.globals.imagePullPolicy }} volumeMounts: - - mountPath: /secrets/mysql-password - name: authhub-secret-vl - subPath: mysql-password - - mountPath: /secrets/redis-password + - mountPath: /db-secrets name: euler-copilot-database-vl - subPath: redis-password + - mountPath: /authhub-secrets + name: authhub-secret-vl - mountPath: /config/aops-config.yml name: authhub-config subPath: aops-config.yml -- Gitee