diff --git a/stable/odoo/Chart.yaml b/stable/odoo/Chart.yaml index ff174c5ca2..dee6395455 100644 --- a/stable/odoo/Chart.yaml +++ b/stable/odoo/Chart.yaml @@ -1,5 +1,5 @@ name: odoo -version: 0.5.9 +version: 0.5.10 appVersion: 10.0.20170902 description: A suite of web based open source business apps. keywords: diff --git a/stable/odoo/templates/pvc.yaml b/stable/odoo/templates/pvc.yaml index 14c4e2fc02..99c8268119 100644 --- a/stable/odoo/templates/pvc.yaml +++ b/stable/odoo/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/odoo/values.yaml b/stable/odoo/values.yaml index 489d21e019..c61bf9fad8 100644 --- a/stable/odoo/values.yaml +++ b/stable/odoo/values.yaml @@ -46,7 +46,14 @@ postgresql: ## persistence: enabled: true - # storageClass: + ## postgresql 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: "-" accessMode: ReadWriteOnce size: 8Gi @@ -60,10 +67,14 @@ serviceType: LoadBalancer ## persistence: enabled: true - ## If defined, volume.beta.kubernetes.io/storage-class: - ## Default: volume.alpha.kubernetes.io/storage-class: default + ## odoo 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