From e50c31daa69bdf4ad8b62e8b28c33c364d1f7627 Mon Sep 17 00:00:00 2001 From: ZhenYi <434836402@qq.com> Date: Fri, 17 Apr 2026 14:06:24 +0800 Subject: [PATCH] fix(deploy): mount /data PVC into git-hook container The git-hook worker needs /data to access repo storage paths, but the deployment defined the shared-data PVC volume at pod level without attaching it to the container via volumeMounts. Added the missing volumeMounts block (name: shared-data, mountPath: /data) so the PVC is properly mounted into the git-hook container, consistent with app and static deployments. --- deploy/templates/git-hook-deployment.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy/templates/git-hook-deployment.yaml b/deploy/templates/git-hook-deployment.yaml index 05d5fbf..eeb3809 100644 --- a/deploy/templates/git-hook-deployment.yaml +++ b/deploy/templates/git-hook-deployment.yaml @@ -61,6 +61,11 @@ spec: timeoutSeconds: {{ .Values.gitHook.readinessProbe.timeoutSeconds }} failureThreshold: {{ .Values.gitHook.readinessProbe.failureThreshold }} {{- end }} + {{- if .Values.storage.enabled }} + volumeMounts: + - name: shared-data + mountPath: /data + {{- end }} {{- with .Values.gitHook.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }}