Skip to content

Commit f814365

Browse files
gnaikrahsimonmarty
andauthored
Updated to the latest default volume mount (#452)
* Updated location of default provider volume * Changed provider volume path in main.go --------- Co-authored-by: Simon Marty <[email protected]>
1 parent 6b47634 commit f814365

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

charts/secrets-store-csi-driver-provider-aws/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ image:
66
awsRegion: ""
77
nameOverride: ""
88
fullnameOverride: ""
9-
providerVolume: "/etc/kubernetes/secrets-store-csi-providers"
9+
providerVolume: "/var/run/secrets-store-csi-providers"
1010
kubeletPath: "/var/lib/kubelet"
1111

1212
driverWritesSecrets: false

deployment/aws-provider-installer.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ spec:
6161
image: public.ecr.aws/aws-secrets-manager/secrets-store-csi-driver-provider-aws:1.0.r2-80-g8244505-2025.02.10.18.44
6262
imagePullPolicy: Always
6363
args:
64-
- --provider-volume=/etc/kubernetes/secrets-store-csi-providers
64+
- --provider-volume=/var/run/secrets-store-csi-providers
6565
resources:
6666
requests:
6767
cpu: 50m
@@ -73,15 +73,15 @@ spec:
7373
privileged: false
7474
allowPrivilegeEscalation: false
7575
volumeMounts:
76-
- mountPath: "/etc/kubernetes/secrets-store-csi-providers"
76+
- mountPath: "/var/run/secrets-store-csi-providers"
7777
name: providervol
7878
- name: mountpoint-dir
7979
mountPath: /var/lib/kubelet/pods
8080
mountPropagation: HostToContainer
8181
volumes:
8282
- name: providervol
8383
hostPath:
84-
path: "/etc/kubernetes/secrets-store-csi-providers"
84+
path: "/var/run/secrets-store-csi-providers"
8585
- name: mountpoint-dir
8686
hostPath:
8787
path: /var/lib/kubelet/pods

deployment/private-installer.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ spec:
6161
image: ${PRIVREPO}:latest
6262
imagePullPolicy: Always
6363
args:
64-
- --provider-volume=/etc/kubernetes/secrets-store-csi-providers
64+
- --provider-volume=/var/run/secrets-store-csi-providers
6565
- --driver-writes-secrets=false
6666
resources:
6767
requests:
@@ -74,15 +74,15 @@ spec:
7474
privileged: false
7575
allowPrivilegeEscalation: false
7676
volumeMounts:
77-
- mountPath: "/etc/kubernetes/secrets-store-csi-providers"
77+
- mountPath: "/var/run/secrets-store-csi-providers"
7878
name: providervol
7979
- name: mountpoint-dir
8080
mountPath: /var/lib/kubelet/pods
8181
mountPropagation: HostToContainer
8282
volumes:
8383
- name: providervol
8484
hostPath:
85-
path: "/etc/kubernetes/secrets-store-csi-providers"
85+
path: "/var/run/secrets-store-csi-providers"
8686
- name: mountpoint-dir
8787
hostPath:
8888
path: /var/lib/kubelet/pods

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
)
2121

2222
var (
23-
endpointDir = flag.String("provider-volume", "/etc/kubernetes/secrets-store-csi-providers", "Rendezvous directory for provider socket")
23+
endpointDir = flag.String("provider-volume", "/var/run/secrets-store-csi-providers", "Rendezvous directory for provider socket")
2424
driverWriteSecrets = flag.Bool("driver-writes-secrets", false, "The driver will do the write instead of the plugin")
2525
qps = flag.Int("qps", 5, "Maximum query per second to the Kubernetes API server. To mount the requested secret on the pod, the AWS CSI provider lookups the region of the pod and the role ARN associated with the service account by calling the K8s APIs. Increase the value if the provider is throttled by client-side limit to the API server.")
2626
burst = flag.Int("burst", 10, "Maximum burst for throttle. To mount the requested secret on the pod, the AWS CSI provider lookups the region of the pod and the role ARN associated with the service account by calling the K8s APIs. Increase the value if the provider is throttled by client-side limit to the API server.")

0 commit comments

Comments
 (0)