diff --git a/deploy/chart/authhub/configs/backend/copy-config.yml b/deploy/chart/authhub/configs/backend/copy-config.yml index 74cd501925b08fd06cf0ec398b274e84d961d8b5..43d4e14c8373c8f0fcb6654d4f5b89fe1eba16e9 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 54884d24bb57fa480fd2ef438ef81c41da37b073..8cfc36faa7dfdff964083c6f82c255f65474bd45 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