From b9a9acbc7597c589c1fc7af94b7e23aabd332460 Mon Sep 17 00:00:00 2001 From: ZhenYi <434836402@qq.com> Date: Wed, 15 Apr 2026 14:11:40 +0800 Subject: [PATCH] fix(deploy): correct ConfigMap name from -secrets to -config All deployments referenced the wrong ConfigMap name. ConfigMap is named gitdata-config in the cluster. --- deploy/templates/app-deployment.yaml | 2 +- deploy/templates/email-worker-deployment.yaml | 2 +- deploy/templates/git-hook-deployment.yaml | 2 +- deploy/templates/gitserver-deployment.yaml | 2 +- deploy/templates/operator-deployment.yaml | 2 +- deploy/templates/static-deployment.yaml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/deploy/templates/app-deployment.yaml b/deploy/templates/app-deployment.yaml index 118b1c0..3f9b5c2 100644 --- a/deploy/templates/app-deployment.yaml +++ b/deploy/templates/app-deployment.yaml @@ -37,7 +37,7 @@ spec: protocol: TCP envFrom: - configMapRef: - name: {{ include "gitdata.fullname" . }}-secrets + name: {{ include "gitdata.fullname" . }}-config {{- range .Values.app.env }} - name: {{ .name }} value: {{ .value | quote }} diff --git a/deploy/templates/email-worker-deployment.yaml b/deploy/templates/email-worker-deployment.yaml index 53bb218..9d42762 100644 --- a/deploy/templates/email-worker-deployment.yaml +++ b/deploy/templates/email-worker-deployment.yaml @@ -32,7 +32,7 @@ spec: imagePullPolicy: {{ .Values.emailWorker.image.pullPolicy | default .Values.image.pullPolicy }} envFrom: - configMapRef: - name: {{ include "gitdata.fullname" . }}-secrets + name: {{ include "gitdata.fullname" . }}-config {{- range .Values.emailWorker.env }} - name: {{ .name }} value: {{ .value | quote }} diff --git a/deploy/templates/git-hook-deployment.yaml b/deploy/templates/git-hook-deployment.yaml index f6f2634..05d5fbf 100644 --- a/deploy/templates/git-hook-deployment.yaml +++ b/deploy/templates/git-hook-deployment.yaml @@ -32,7 +32,7 @@ spec: imagePullPolicy: {{ .Values.gitHook.image.pullPolicy | default .Values.image.pullPolicy }} envFrom: - configMapRef: - name: {{ include "gitdata.fullname" . }}-secrets + name: {{ include "gitdata.fullname" . }}-config {{- range .Values.gitHook.env }} - name: {{ .name }} value: {{ .value | quote }} diff --git a/deploy/templates/gitserver-deployment.yaml b/deploy/templates/gitserver-deployment.yaml index c5f31e1..2d766cc 100644 --- a/deploy/templates/gitserver-deployment.yaml +++ b/deploy/templates/gitserver-deployment.yaml @@ -46,7 +46,7 @@ spec: protocol: TCP envFrom: - configMapRef: - name: {{ $fullName }}-secrets + name: {{ $fullName }}-config env: - name: APP_REPOS_ROOT value: /data/repos diff --git a/deploy/templates/operator-deployment.yaml b/deploy/templates/operator-deployment.yaml index 2667071..5555cfc 100644 --- a/deploy/templates/operator-deployment.yaml +++ b/deploy/templates/operator-deployment.yaml @@ -31,7 +31,7 @@ spec: imagePullPolicy: {{ .Values.operator.image.pullPolicy | default .Values.image.pullPolicy }} envFrom: - configMapRef: - name: {{ include "gitdata.fullname" . }}-secrets + name: {{ include "gitdata.fullname" . }}-config env: - name: OPERATOR_IMAGE_PREFIX value: {{ .Values.operator.imagePrefix | default (printf "%s/" (include "gitdata.fullname" .)) | quote }} diff --git a/deploy/templates/static-deployment.yaml b/deploy/templates/static-deployment.yaml index b4b4ae0..062ef9a 100644 --- a/deploy/templates/static-deployment.yaml +++ b/deploy/templates/static-deployment.yaml @@ -42,7 +42,7 @@ spec: protocol: TCP envFrom: - configMapRef: - name: {{ $fullName }}-secrets + name: {{ $fullName }}-config env: - name: STATIC_ROOT value: /data