Make the agent socket configurable (#114)
This commit is contained in:
@@ -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: ""
|
||||
|
||||
Reference in New Issue
Block a user