Skip to content

Commit

Permalink
Support default storage class in helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
n0rad committed Jul 5, 2019
1 parent 8428280 commit 23c93d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions helm/provisioner/templates/provisioner.yaml
Expand Up @@ -146,6 +146,12 @@ apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: {{ $val.name }}
{{- if kindIs "map" $val.storageClass }}
{{- if $val.storageClass.isDefaultClass }}
annotations:
storageclass.kubernetes.io/is-default-class: "true"
{{- end }}
{{- end }}
labels:
heritage: {{ $release.Service | quote }}
release: {{ $release.Name | quote }}
Expand Down
2 changes: 2 additions & 0 deletions helm/provisioner/values.yaml
Expand Up @@ -76,6 +76,8 @@ classes:
# Uncomment to create storage class object and configure it.
# storageClass:
# reclaimPolicy: Delete # Available reclaim policies: Delete/Retain, defaults: Delete.
# isDefaultClass: true # set as default class

#
# Configure DaemonSet for provisioner.
#
Expand Down

0 comments on commit 23c93d3

Please sign in to comment.