Skip to content

Commit

Permalink
Merge pull request #2039 from torredil/defaultsc
Browse files Browse the repository at this point in the history
Add `defaultStorageClass` parameter
  • Loading branch information
k8s-ci-robot authored May 14, 2024
2 parents 6595211 + 2248601 commit 831f07f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions charts/aws-ebs-csi-driver/templates/ebs-csi-default-sc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{- if .Values.defaultStorageClass.enabled }}
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: ebs-csi-default-sc
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: ebs.csi.aws.com
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true
{{- end }}
3 changes: 3 additions & 0 deletions charts/aws-ebs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,9 @@ storageClasses: []
# parameters:
# encrypted: "true"

defaultStorageClass:
enabled: false

volumeSnapshotClasses: []
# Add VolumeSnapshotClass resources like:
# - name: ebs-vsc
Expand Down

0 comments on commit 831f07f

Please sign in to comment.