From 6e269e5a3d89591ce6366fa8b7950604cc93d78b Mon Sep 17 00:00:00 2001 From: Guang Ya Liu Date: Sat, 23 Dec 2017 00:48:36 +0800 Subject: [PATCH] [stable/ghost] Use storageClassName for ghost. (#1991) --- stable/ghost/Chart.yaml | 2 +- stable/ghost/templates/pvc.yaml | 13 +++++++------ stable/ghost/values.yaml | 20 ++++++++++++++------ 3 files changed, 22 insertions(+), 13 deletions(-) diff --git a/stable/ghost/Chart.yaml b/stable/ghost/Chart.yaml index f3f6b39319..cc10145cbf 100644 --- a/stable/ghost/Chart.yaml +++ b/stable/ghost/Chart.yaml @@ -1,5 +1,5 @@ name: ghost -version: 2.1.4 +version: 2.1.5 appVersion: 1.19.0 description: A simple, powerful publishing platform that allows you to share your stories with the world diff --git a/stable/ghost/templates/pvc.yaml b/stable/ghost/templates/pvc.yaml index 76e4aaec01..36e1ab84e4 100644 --- a/stable/ghost/templates/pvc.yaml +++ b/stable/ghost/templates/pvc.yaml @@ -8,16 +8,17 @@ metadata: chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" - annotations: - {{- if .Values.persistence.storageClass }} - volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.storageClass | quote }} - {{- else }} - volume.alpha.kubernetes.io/storage-class: default - {{- end }} spec: accessModes: - {{ .Values.persistence.accessMode | quote }} resources: requests: storage: {{ .Values.persistence.size | quote }} +{{- if .Values.persistence.storageClass }} +{{- if (eq "-" .Values.persistence.storageClass) }} + storageClassName: "" +{{- else }} + storageClassName: "{{ .Values.persistence.storageClass }}" +{{- end }} +{{- end }} {{- end -}} diff --git a/stable/ghost/values.yaml b/stable/ghost/values.yaml index 5b44e9d96e..b0996bea0d 100644 --- a/stable/ghost/values.yaml +++ b/stable/ghost/values.yaml @@ -114,10 +114,14 @@ mariadb: ## persistence: enabled: true - ## If defined, volume.beta.kubernetes.io/storage-class: - ## Default: volume.alpha.kubernetes.io/storage-class: default + ## mariadb data Persistent Volume Storage Class + ## If defined, storageClassName: + ## If set to "-", storageClassName: "", which disables dynamic provisioning + ## If undefined (the default) or set to null, no storageClassName spec is + ## set, choosing the default provisioner. (gp2 on AWS, standard on + ## GKE, AWS & OpenStack) ## - # storageClass: + # storageClass: "-" accessMode: ReadWriteOnce size: 8Gi @@ -131,10 +135,14 @@ serviceType: LoadBalancer ## persistence: enabled: true - ## If defined, volume.beta.kubernetes.io/storage-class: - ## Default: volume.alpha.kubernetes.io/storage-class: default + ## ghost data Persistent Volume Storage Class + ## If defined, storageClassName: + ## If set to "-", storageClassName: "", which disables dynamic provisioning + ## If undefined (the default) or set to null, no storageClassName spec is + ## set, choosing the default provisioner. (gp2 on AWS, standard on + ## GKE, AWS & OpenStack) ## - # storageClass: + # storageClass: "-" accessMode: ReadWriteOnce size: 8Gi