Skip to content

Commit

Permalink
feat: allow to don't use helm hooks for CSIDriver creation
Browse files Browse the repository at this point in the history
  • Loading branch information
woehrl01 committed Sep 11, 2024
1 parent 9ac1d62 commit 9933a10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions charts/aws-efs-csi-driver/templates/csidriver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ kind: CSIDriver
metadata:
name: efs.csi.aws.com
annotations:
{{- if .Values.useHelmHooksForCSIDriver }}
"helm.sh/hook": pre-install, pre-upgrade
"helm.sh/hook-delete-policy": before-hook-creation
{{- end }}
"helm.sh/resource-policy": keep
spec:
attachRequired: false
7 changes: 5 additions & 2 deletions charts/aws-efs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ controller:
runAsGroup: 0
fsGroup: 0


## Node daemonset variables

node:
Expand Down Expand Up @@ -134,7 +133,8 @@ node:
# cpu: 100m
# memory: 128Mi
nodeSelector: {}
updateStrategy: {}
updateStrategy:
{}
# Override default strategy (RollingUpdate) to speed up deployment.
# This can be useful if helm timeouts are observed.
# type: OnDelete
Expand Down Expand Up @@ -184,3 +184,6 @@ storageClasses: []
# ensureUniqueDirectory: true
# reclaimPolicy: Delete
# volumeBindingMode: Immediate

# Specifies wether to use helm hooks to apply the CSI driver
useHelmHooksForCSIDriver: true

0 comments on commit 9933a10

Please sign in to comment.