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.
This commit is contained in:
ZhenYi 2026-04-17 14:06:24 +08:00
parent 7c042c7b9d
commit e50c31daa6

View File

@ -61,6 +61,11 @@ spec:
timeoutSeconds: {{ .Values.gitHook.readinessProbe.timeoutSeconds }} timeoutSeconds: {{ .Values.gitHook.readinessProbe.timeoutSeconds }}
failureThreshold: {{ .Values.gitHook.readinessProbe.failureThreshold }} failureThreshold: {{ .Values.gitHook.readinessProbe.failureThreshold }}
{{- end }} {{- end }}
{{- if .Values.storage.enabled }}
volumeMounts:
- name: shared-data
mountPath: /data
{{- end }}
{{- with .Values.gitHook.nodeSelector }} {{- with .Values.gitHook.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}