odoo - replace boilerplate with template

This commit is contained in:
Stavros kois
2023-11-06 19:53:14 +02:00
committed by Stavros Kois
parent 3c93f5ee8d
commit c0be8e667d
6 changed files with 12 additions and 45 deletions

View File

@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: file://../../../common
version: 1.1.1
digest: sha256:a7dbe3e4d42dbcd4325776e5e01a1d630c7f185f79e7ebf22b1b9cc80f56eed7
generated: "2023-10-17T17:57:09.95481132+03:00"
version: 1.2.1
digest: sha256:d695592ea5213fe64453171205ca326015d02df3888a7858becc0c733b0de4c7
generated: "2023-11-06T19:52:22.015444086+02:00"

View File

@@ -3,7 +3,7 @@ description: Odoo is a suite of web based open source business apps.
annotations:
title: Odoo
type: application
version: 1.0.2
version: 1.0.3
apiVersion: v2
appVersion: '16.0'
kubeVersion: '>=1.16.0-0'
@@ -14,7 +14,7 @@ maintainers:
dependencies:
- name: common
repository: file://../../../common
version: 1.1.1
version: 1.2.1
home: https://www.odoo.com/
icon: https://media.sys.truenas.net/apps/odoo/icons/icon.png
sources:

Binary file not shown.

View File

@@ -50,33 +50,9 @@ persistence:
mountPath: /etc/odoo/odoo.conf
readOnly: true
subPath: odoo.conf
# Postgres
postgresdata:
enabled: true
type: {{ .Values.odooStorage.pgData.type }}
datasetName: {{ .Values.odooStorage.pgData.datasetName | default "" }}
hostPath: {{ .Values.odooStorage.pgData.hostPath | default "" }}
targetSelector:
# Postgres pod
postgres:
# Postgres container
postgres:
mountPath: /var/lib/postgresql/data
# Permissions container
permissions:
mountPath: /mnt/directories/postgres_data
postgresbackup:
enabled: true
type: {{ .Values.odooStorage.pgBackup.type }}
datasetName: {{ .Values.odooStorage.pgBackup.datasetName | default "" }}
hostPath: {{ .Values.odooStorage.pgBackup.hostPath | default "" }}
targetSelector:
# Postgres backup pod
postgresbackup:
# Postgres backup container
postgresbackup:
mountPath: /postgres_backup
# Permissions container
permissions:
mountPath: /mnt/directories/postgres_backup
{{- include "ix.v1.common.app.postgresPersistence"
(dict "pgData" .Values.odooStorage.pgData
"pgBackup" .Values.odooStorage.pgBackup
) | nindent 2 }}
{{- end -}}

View File

@@ -12,15 +12,6 @@ service:
port: {{ .Values.odooNetwork.webPort }}
nodePort: {{ .Values.odooNetwork.webPort }}
targetSelector: odoo
# Postgres
postgres:
enabled: true
type: ClusterIP
targetSelector: postgres
ports:
postgres:
enabled: true
primary: true
port: 5432
targetSelector: postgres
{{- include "ix.v1.common.app.postgresService" $ | nindent 2 }}
{{- end -}}