Skip to content

Commit

Permalink
Make csi-provisioner timeout customizable in kustomize
Browse files Browse the repository at this point in the history
  • Loading branch information
everpeace committed Jan 18, 2024
1 parent 4d05480 commit 03a32dc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deploy/kubernetes/base/controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,15 @@ spec:
args:
- --csi-address=$(ADDRESS)
- --v=2
- --timeout=5m
- --timeout=$(CONTROLLER_PROVISIONER_TIMEOUT)
- --extra-create-metadata
- --leader-election=true
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
envFrom:
- configMapRef:
name: fsx-csi-controller
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
Expand Down
1 change: 1 addition & 0 deletions deploy/kubernetes/base/controller.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONTROLLER_PROVISIONER_TIMEOUT=5m
4 changes: 4 additions & 0 deletions deploy/kubernetes/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ resources:
- clusterrole-csi-node.yaml
- clusterrolebinding-csi-node.yaml

configMapGenerator:
- name: fsx-csi-controller
envs:
- controller.env

0 comments on commit 03a32dc

Please sign in to comment.