mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
committed by
Kubernetes Prow Robot
parent
363a694d4e
commit
fc5186f63a
@@ -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/
|
||||
|
||||
@@ -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` |
|
||||
|
||||
@@ -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,4 +1,4 @@
|
||||
{{- if .Values.persistence.enabled -}}
|
||||
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user