[stable/odoo] Add support to existing PVCs (#12745)

* [stable/odoo] Add support to existing PVCs

Signed-off-by: juan131 <juan@bitnami.com>

* Add an 'empty' line (##) between the comment and the value

Signed-off-by: juan131 <juan@bitnami.com>
This commit is contained in:
Juan Ariza Toledano
2019-04-02 06:20:36 -07:00
committed by Kubernetes Prow Robot
parent 363a694d4e
commit fc5186f63a
5 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -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/
+2
View File
@@ -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` |
+1 -1
View File
@@ -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 }}
+1 -1
View File
@@ -1,4 +1,4 @@
{{- if .Values.persistence.enabled -}}
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
+5
View File
@@ -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: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning