Skip to content

Commit

Permalink
Merge pull request #412 from KarstenSiemer/feat/helm-add-config-to-en…
Browse files Browse the repository at this point in the history
…able-deleteAccessPointRootDir

feat: add helm config to enable deleteAccessPointRootDir
  • Loading branch information
wongma7 committed Apr 21, 2021
2 parents 61305ed + e4bf8ba commit 00d2689
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Expand Up @@ -50,9 +50,8 @@ spec:
args:
- --endpoint=$(CSI_ENDPOINT)
- --logtostderr
- --v=5
# Uncomment below line to allow access point root directory to be deleted by controller.
#- --delete-access-point-root-dir
- --v={{ .Values.logLevel }}
- --delete-access-point-root-dir={{ hasKey .Values.controller "deleteAccessPointRootDir" | ternary .Values.controller.deleteAccessPointRootDir false }}
env:
- name: CSI_ENDPOINT
value: unix:///var/lib/csi/sockets/pluginproxy/csi.sock
Expand All @@ -75,7 +74,7 @@ spec:
image: {{ printf "%s:%s" .Values.sidecars.csiProvisionerImage.repository .Values.sidecars.csiProvisionerImage.tag }}
args:
- --csi-address=$(ADDRESS)
- --v=5
- --v={{ .Values.logLevel }}
- --feature-gates=Topology=true
- --leader-election
env:
Expand Down
3 changes: 3 additions & 0 deletions charts/aws-efs-csi-driver/values.yaml
Expand Up @@ -82,6 +82,9 @@ serviceAccount:

controller:
create: true
# Enable if you want the controller to also delete the
# path on efs when deleteing an access point
deleteAccessPointRootDir: false

storageClasses: []
# Add StorageClass resources like:
Expand Down

0 comments on commit 00d2689

Please sign in to comment.