Skip to content

Commit

Permalink
feat(helm-chart): add extraParam for StorageClass (#865)
Browse files Browse the repository at this point in the history
add the ability to set custom parameters for storageclass to enable e.g.
luks disk encryption or set fstype

---------

Co-authored-by: binlan <>
Co-authored-by: Lukas Metzner <[email protected]>
  • Loading branch information
binlan and lukasmetzner authored Feb 3, 2025
1 parent 890d590 commit 111a377
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chart/templates/core/storageclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ allowedTopologies:
values:
- "cloud"
{{- end}}
{{- if $val.extraParameters }}
parameters:
{{- $val.extraParameters | toYaml | nindent 2 }}
{{- end}}
---
{{- end }}
{{- end }}
7 changes: 7 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -747,3 +747,10 @@ storageClasses:
- name: hcloud-volumes
defaultStorageClass: true
reclaimPolicy: Delete
## Optionally, specify StorageClass parameters to be added.
## e.g.:
## extraParameters:
## csi.storage.k8s.io/node-publish-secret-name: encryption-secret,
## csi.storage.k8s.io/node-publish-secret-namespace: kube-system
##
extraParameters: {}

0 comments on commit 111a377

Please sign in to comment.