From e47f8e6ba63ef1ae6e23bb708d96fdb85f66dba8 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Tue, 9 Dec 2025 12:56:43 +0400 Subject: [PATCH] Update deployment.yaml --- helm-charts/infisical-gateway/templates/deployment.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/helm-charts/infisical-gateway/templates/deployment.yaml b/helm-charts/infisical-gateway/templates/deployment.yaml index 964d7fd43..b03fe9c98 100644 --- a/helm-charts/infisical-gateway/templates/deployment.yaml +++ b/helm-charts/infisical-gateway/templates/deployment.yaml @@ -54,10 +54,13 @@ spec: containerPort: {{ .Values.service.port }} protocol: TCP volumeMounts: - - name: infisical-gateway-session-recordings-data - mountPath: {{ .Values.gateway.pamSessionRecordingsDirectory | default "/var/lib/infisical/session_recordings" }} - name: infisical-gateway-cached-relay-data mountPath: /var/lib/infisical + {{- $sessionPath := .Values.gateway.pamSessionRecordingsDirectory | default "/var/lib/infisical/session_recordings" }} + {{- if not (hasPrefix "/var/lib/infisical" $sessionPath) }} + - name: infisical-gateway-session-recordings-data + mountPath: {{ $sessionPath }} + {{- end }} {{- with .Values.resources }} resources: {{- toYaml . | nindent 12 }}