Make the agent socket configurable (#114)

This commit is contained in:
kfox1111
2023-03-13 20:35:27 +01:00
committed by GitHub
parent f3a81ad78d
commit 661000a29a
13 changed files with 22 additions and 9 deletions
@@ -84,3 +84,7 @@ Create the name of the service account to use
{{- printf "%s/%s" .image.registry .image.repository -}}
{{- end -}}
{{- end }}
{{- define "spiffe-csi-driver.agent-socket-path" -}}
{{- print .Values.agentSocketPath }}
{{- end }}
@@ -100,7 +100,7 @@ spec:
volumes:
- name: spire-agent-socket-dir
hostPath:
path: {{ include "spire.agent-socket-path" . | dir }}
path: {{ include "spiffe-csi-driver.agent-socket-path" . | dir }}
type: DirectoryOrCreate
# This volume is where the socket for kubelet->driver communication lives
- name: spiffe-csi-socket-dir