Skip to content

Commit

Permalink
Merge pull request #87 from morganchristiansson/set-default-storageclass
Browse files Browse the repository at this point in the history
Add support for annotations in StorageClasses
  • Loading branch information
ccremer authored Sep 29, 2022
2 parents d982040 + c249051 commit a8d9d26
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/kubernetes-zfs-provisioner/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ description: Dynamic ZFS persistent volume provisioner for Kubernetes

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 2.0.1
version: 2.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
Expand Down
2 changes: 1 addition & 1 deletion charts/kubernetes-zfs-provisioner/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# kubernetes-zfs-provisioner

![Version: 2.0.1](https://img.shields.io/badge/Version-2.0.1-informational?style=flat-square)
![Version: 2.1.0](https://img.shields.io/badge/Version-2.1.0-informational?style=flat-square)

Dynamic ZFS persistent volume provisioner for Kubernetes

Expand Down
4 changes: 4 additions & 0 deletions charts/kubernetes-zfs-provisioner/templates/storageclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
name: {{ .name }}
labels:
{{- include "kubernetes-zfs-provisioner.labels" $ | nindent 4 }}
{{- with .annotations }}
annotations:
{{ toYaml . | nindent 4 }}
{{- end }}
provisioner: {{ $.Values.provisioner.instance }}
reclaimPolicy: {{ .policy | default "Delete" }}
parameters:
Expand Down
3 changes: 3 additions & 0 deletions charts/kubernetes-zfs-provisioner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ storageClass:
# # -- Override `kubernetes.io/hostname` from `hostName` parameter for
# # `HostPath` node affinity
# node: ""
# # -- Annotations for the storage class
# # annotations:
# # storageclass.kubernetes.io/is-default-class: "true"

ssh:
# -- If SSH secrets are managed externally, specify the name
Expand Down

0 comments on commit a8d9d26

Please sign in to comment.