Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Update deployment.yaml

Daniel Hougaarde47f8e6ba63e
diff --git a/helm-charts/infisical-gateway/templates/deployment.yaml b/helm-charts/infisical-gateway/templates/deployment.yaml
index 964d7fd435..b03fe9c981 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 }}