diff --git a/stable/odoo/Chart.yaml b/stable/odoo/Chart.yaml index 457948db9e..a83bed62ee 100644 --- a/stable/odoo/Chart.yaml +++ b/stable/odoo/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: odoo -version: 6.1.1 +version: 6.2.0 appVersion: 11.0.20190315 description: A suite of web based open source business apps. home: https://www.odoo.com/ diff --git a/stable/odoo/README.md b/stable/odoo/README.md index 730fc1c0cc..33da0126a7 100644 --- a/stable/odoo/README.md +++ b/stable/odoo/README.md @@ -80,6 +80,8 @@ The following table lists the configurable parameters of the Odoo chart and thei | `ingress.secrets[0].certificate` | TLS Secret Certificate | `nil` | | `ingress.secrets[0].key` | TLS Secret Key | `nil` | | `resources` | CPU/Memory resource requests/limits | Memory: `512Mi`, CPU: `300m` | +| `persistence.enabled` | Enable persistence using PVC | `true` | +| `persistence.existingClaim` | Enable persistence using an existing PVC | `nil` | | `persistence.storageClass` | PVC Storage Class | `nil` (uses alpha storage class annotation) | | `persistence.accessMode` | PVC Access Mode | `ReadWriteOnce` | | `persistence.size` | PVC Storage Request | `8Gi` | diff --git a/stable/odoo/templates/deployment.yaml b/stable/odoo/templates/deployment.yaml index 8911bc48e1..987b363035 100644 --- a/stable/odoo/templates/deployment.yaml +++ b/stable/odoo/templates/deployment.yaml @@ -98,7 +98,7 @@ spec: - name: odoo-data {{- if .Values.persistence.enabled }} persistentVolumeClaim: - claimName: {{ template "odoo.fullname" . }} + claimName: {{ .Values.persistence.existingClaim | default (include "odoo.fullname" .) }} {{- else }} emptyDir: {} {{- end }} diff --git a/stable/odoo/templates/pvc.yaml b/stable/odoo/templates/pvc.yaml index be63451569..58e3b479ed 100644 --- a/stable/odoo/templates/pvc.yaml +++ b/stable/odoo/templates/pvc.yaml @@ -1,4 +1,4 @@ -{{- if .Values.persistence.enabled -}} +{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }} kind: PersistentVolumeClaim apiVersion: v1 metadata: diff --git a/stable/odoo/values.yaml b/stable/odoo/values.yaml index 8ea4cbcb34..5b27300357 100644 --- a/stable/odoo/values.yaml +++ b/stable/odoo/values.yaml @@ -66,6 +66,11 @@ postgresql: ## persistence: enabled: true + ## If you want to reuse an existing claim, you can pass the name of the PVC using + ## the existingClaim variable + ## + # existingClaim: your-claim + ## postgresql data Persistent Volume Storage Class ## If defined, storageClassName: ## If set to "-", storageClassName: "", which disables dynamic provisioning