Skip to content

Commit

Permalink
Adding annotations to set default storage class
Browse files Browse the repository at this point in the history
  • Loading branch information
cccsss01 committed Jun 10, 2024
1 parent 5d7e716 commit 288304b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Binary file modified charts/latest/csi-driver-nfs-v0.0.0.tgz
Binary file not shown.
4 changes: 4 additions & 0 deletions charts/latest/csi-driver-nfs/templates/storageclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ kind: StorageClass
metadata:
name: {{ .Values.storageClass.name }}
{{ include "nfs.labels" . | indent 2 }}
annotations:
{{- with .Values.storageClass.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
provisioner: nfs.csi.k8s.io
{{- with .Values.storageClass.parameters }}
parameters:
Expand Down
2 changes: 2 additions & 0 deletions charts/latest/csi-driver-nfs/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ imagePullSecrets: []
storageClass:
create: false
# name: nfs-csi
# annotations:
# storageclass.kubernetes.io/is-default-class: "true"
# parameters:
# server: nfs-server.default.svc.cluster.local
# share: /
Expand Down

0 comments on commit 288304b

Please sign in to comment.