Skip to content

Commit 1e9c794

Browse files
authored
Merge pull request #1074 from woehrl01/optional_helm_hooks
feat: allow to don't use helm hooks for CSIDriver creation
2 parents 3886bd8 + 1d5c39c commit 1e9c794

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

charts/aws-efs-csi-driver/templates/csidriver.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ kind: CSIDriver
33
metadata:
44
name: efs.csi.aws.com
55
annotations:
6+
{{- if .Values.useHelmHooksForCSIDriver }}
67
"helm.sh/hook": pre-install, pre-upgrade
78
"helm.sh/hook-delete-policy": before-hook-creation
9+
{{- end }}
810
"helm.sh/resource-policy": keep
911
spec:
1012
attachRequired: false

charts/aws-efs-csi-driver/values.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ controller:
114114
leaderElectionRenewDeadline: 10s
115115
leaderElectionLeaseDuration: 15s
116116

117-
118117
## Node daemonset variables
119118

120119
node:
@@ -154,7 +153,8 @@ node:
154153
# cpu: 100m
155154
# memory: 128Mi
156155
nodeSelector: {}
157-
updateStrategy: {}
156+
updateStrategy:
157+
{}
158158
# Override default strategy (RollingUpdate) to speed up deployment.
159159
# This can be useful if helm timeouts are observed.
160160
# type: OnDelete
@@ -208,3 +208,6 @@ storageClasses: []
208208
# ensureUniqueDirectory: true
209209
# reclaimPolicy: Delete
210210
# volumeBindingMode: Immediate
211+
212+
# Specifies wether to use helm hooks to apply the CSI driver
213+
useHelmHooksForCSIDriver: true

0 commit comments

Comments
 (0)