From c249051f31f7f8a70dba76c25e3763566bbbc460 Mon Sep 17 00:00:00 2001 From: Morgan Christiansson Date: Thu, 29 Sep 2022 15:10:10 +0200 Subject: [PATCH] Add storageClass.classes.defaultClass --- charts/kubernetes-zfs-provisioner/Chart.yaml | 2 +- charts/kubernetes-zfs-provisioner/README.md | 2 +- charts/kubernetes-zfs-provisioner/templates/storageclass.yaml | 4 ++++ charts/kubernetes-zfs-provisioner/values.yaml | 3 +++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/charts/kubernetes-zfs-provisioner/Chart.yaml b/charts/kubernetes-zfs-provisioner/Chart.yaml index d82136b..c9b508e 100644 --- a/charts/kubernetes-zfs-provisioner/Chart.yaml +++ b/charts/kubernetes-zfs-provisioner/Chart.yaml @@ -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. diff --git a/charts/kubernetes-zfs-provisioner/README.md b/charts/kubernetes-zfs-provisioner/README.md index 85f3731..9f44218 100644 --- a/charts/kubernetes-zfs-provisioner/README.md +++ b/charts/kubernetes-zfs-provisioner/README.md @@ -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 diff --git a/charts/kubernetes-zfs-provisioner/templates/storageclass.yaml b/charts/kubernetes-zfs-provisioner/templates/storageclass.yaml index f069c07..1932225 100644 --- a/charts/kubernetes-zfs-provisioner/templates/storageclass.yaml +++ b/charts/kubernetes-zfs-provisioner/templates/storageclass.yaml @@ -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: diff --git a/charts/kubernetes-zfs-provisioner/values.yaml b/charts/kubernetes-zfs-provisioner/values.yaml index b30f90a..e76b16b 100644 --- a/charts/kubernetes-zfs-provisioner/values.yaml +++ b/charts/kubernetes-zfs-provisioner/values.yaml @@ -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