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
@@ -13,6 +13,7 @@ A Helm chart to install the SPIFFE CSI driver.
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| agentSocketPath | string | `"/run/spire/agent-sockets/spire-agent.sock"` | |
| fullnameOverride | string | `""` | |
| healthChecks.port | int | `9809` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
@@ -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
@@ -69,5 +69,7 @@ nodeDriverRegistrar:
# cpu: 100m
# memory: 64Mi
agentSocketPath: /run/spire/agent-sockets/spire-agent.sock
# -- Priority class assigned to daemonset pods
priorityClassName: ""