feat(odoo) move odoo stable (#13769)
**Description** add the default creds and move to stable ⚒️ Fixes # <!--(issue)--> **⚙️ Type of change** - [X] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** <!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration --> **📃 Notes:** <!-- Please enter any other relevant information here --> **✔️ Checklist:** - [X] ⚖️ My code follows the style guidelines of this project - [X] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [X] 📄 I have made corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [X] ⬆️ I increased versions for any altered app according to semantic versioning **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🪞 I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# Patterns to ignore when building packages.
|
||||
# This supports shell glob matching, relative path matching, and
|
||||
# negation (prefixed with !). Only one pattern per line.
|
||||
.DS_Store
|
||||
# Common VCS dirs
|
||||
.git/
|
||||
.gitignore
|
||||
.bzr/
|
||||
.bzrignore
|
||||
.hg/
|
||||
.hgignore
|
||||
.svn/
|
||||
# Common backup files
|
||||
*.swp
|
||||
*.bak
|
||||
*.tmp
|
||||
*~
|
||||
# Various IDEs
|
||||
.project
|
||||
.idea/
|
||||
*.tmproj
|
||||
.vscode/
|
||||
# OWNERS file for Kubernetes
|
||||
OWNERS
|
||||
# helm-docs templates
|
||||
*.gotmpl
|
||||
# docs folder
|
||||
/docs
|
||||
# icon
|
||||
icon.png
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,33 @@
|
||||
apiVersion: v2
|
||||
appVersion: "16.0.0"
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: https://library-charts.truecharts.org
|
||||
version: 14.0.9
|
||||
deprecated: false
|
||||
description: All-in-one business software. Beautiful. Easy-to-use. CRM, Accounting, PM, HR, Procurement, Point of Sale, MRP, Marketing, etc.
|
||||
home: https://truecharts.org/charts/stable/odoo
|
||||
icon: https://truecharts.org/img/hotlink-ok/chart-icons/odoo.png
|
||||
keywords:
|
||||
- odoo
|
||||
- crm
|
||||
- pm
|
||||
- hr
|
||||
- accounting
|
||||
- mrp
|
||||
- marketing
|
||||
kubeVersion: ">=1.16.0-0"
|
||||
maintainers:
|
||||
- email: info@truecharts.org
|
||||
name: TrueCharts
|
||||
url: https://truecharts.org
|
||||
name: odoo
|
||||
sources:
|
||||
- https://github.com/truecharts/charts/tree/master/charts/stable/odoo
|
||||
- https://github.com/odoo/docker
|
||||
type: application
|
||||
version: 14.0.5
|
||||
annotations:
|
||||
truecharts.org/catagories: |
|
||||
- productivity
|
||||
truecharts.org/SCALE-support: "true"
|
||||
@@ -0,0 +1,27 @@
|
||||
# README
|
||||
|
||||
## General Info
|
||||
|
||||
TrueCharts can be installed as both *normal* Helm Charts or as Apps on TrueNAS SCALE.
|
||||
However only installations using the TrueNAS SCALE Apps system are supported.
|
||||
|
||||
For more information about this App, please check the docs on the TrueCharts [website](https://truecharts.org/charts/incubator/)
|
||||
|
||||
**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/truecharts/charts/issues/new/choose)**
|
||||
|
||||
|
||||
## Support
|
||||
|
||||
- Please check our [quick-start guides for TrueNAS SCALE](https://truecharts.org/manual/SCALE/guides/scale-intro).
|
||||
- See the [Website](https://truecharts.org)
|
||||
- Check our [Discord](https://discord.gg/tVsPTHWTtr)
|
||||
- Open a [issue](https://github.com/truecharts/charts/issues/new/choose)
|
||||
|
||||
---
|
||||
|
||||
## Sponsor TrueCharts
|
||||
|
||||
TrueCharts can only exist due to the incredible effort of our staff.
|
||||
Please consider making a [donation](https://truecharts.org/sponsor) or contributing back to the project any way you can!
|
||||
|
||||
*All Rights Reserved - The TrueCharts Project*
|
||||
@@ -0,0 +1,4 @@
|
||||
# Default credentials
|
||||
|
||||
- Username: `admin`
|
||||
- Password: `admin`
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
@@ -0,0 +1,132 @@
|
||||
# Include{groups}
|
||||
portals:
|
||||
open:
|
||||
# Include{portalLink}
|
||||
questions:
|
||||
# Include{global}
|
||||
# Include{workload}
|
||||
# Include{workloadDeployment}
|
||||
|
||||
# Include{replicas1}
|
||||
# Include{podSpec}
|
||||
# Include{containerMain}
|
||||
|
||||
# Include{containerBasic}
|
||||
# Include{containerAdvanced}
|
||||
|
||||
- variable: odoo
|
||||
group: App Configuration
|
||||
label: Odoo
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: additionalConf
|
||||
label: Additional File Configuration Options
|
||||
description: |
|
||||
Configure additional file configuration options for Odoo.</br>
|
||||
Options are appended to the end of the configuration file.</br>
|
||||
After the predefined configuration options.</br>
|
||||
schema:
|
||||
type: list
|
||||
default: []
|
||||
items:
|
||||
- variable: conf
|
||||
label: Configuration Option
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: key
|
||||
label: Key
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
- variable: value
|
||||
label: Value
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
# Include{containerConfig}
|
||||
# Include{podOptions}
|
||||
# Include{serviceRoot}
|
||||
# Include{serviceMain}
|
||||
# Include{serviceSelectorLoadBalancer}
|
||||
# Include{serviceSelectorExtras}
|
||||
- variable: main
|
||||
label: "Main Service Port Configuration"
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: port
|
||||
label: "Port"
|
||||
description: "This port exposes the container port on the service"
|
||||
schema:
|
||||
type: int
|
||||
default: 8069
|
||||
required: true
|
||||
# Include{serviceExpertRoot}
|
||||
# Include{serviceExpert}
|
||||
# Include{serviceList}
|
||||
# Include{persistenceRoot}
|
||||
- variable: odoo
|
||||
label: "App Config Storage"
|
||||
description: "Stores the Application Configuration."
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
# Include{persistenceBasic}
|
||||
- variable: addons
|
||||
label: "App Addons Storage"
|
||||
description: "Stores the Application addons."
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
# Include{persistenceBasic}
|
||||
# Include{persistenceList}
|
||||
# Include{ingressRoot}
|
||||
- variable: main
|
||||
label: "Main Ingress"
|
||||
schema:
|
||||
additional_attrs: true
|
||||
type: dict
|
||||
attrs:
|
||||
# Include{ingressDefault}
|
||||
# Include{ingressTLS}
|
||||
# Include{ingressTraefik}
|
||||
# Include{ingressAdvanced}
|
||||
# Include{ingressList}
|
||||
# Include{securityContextRoot}
|
||||
|
||||
- variable: runAsUser
|
||||
label: "runAsUser"
|
||||
description: "The UserID of the user running the application"
|
||||
schema:
|
||||
type: int
|
||||
default: 101
|
||||
- variable: runAsGroup
|
||||
label: "runAsGroup"
|
||||
description: "The groupID this App of the user running the application"
|
||||
schema:
|
||||
type: int
|
||||
default: 101
|
||||
# Include{securityContextContainer}
|
||||
# Include{securityContextAdvanced}
|
||||
# Include{securityContextPod}
|
||||
- variable: fsGroup
|
||||
label: "fsGroup"
|
||||
description: "The group that should own ALL storage."
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
|
||||
# Include{resources}
|
||||
# Include{advanced}
|
||||
# Include{addons}
|
||||
# Include{codeserver}
|
||||
# Include{netshoot}
|
||||
# Include{vpn}
|
||||
# Include{documentation}
|
||||
@@ -0,0 +1 @@
|
||||
{{- include "tc.v1.common.lib.chart.notes" $ -}}
|
||||
@@ -0,0 +1,52 @@
|
||||
{{/* Define the configmap */}}
|
||||
{{- define "odoo.configmaps" -}}
|
||||
{{- $fullname := (include "tc.v1.common.lib.chart.names.fullname" $) -}}
|
||||
|
||||
{{- $admin := .Values.odoo.admin -}}
|
||||
{{- $smtp := .Values.odoo.smtp -}}
|
||||
|
||||
{{- $mainPort := .Values.service.main.ports.main.port -}}
|
||||
{{- $odooPath := .Values.persistence.odoo.targetSelector.main.main.mountPath -}}
|
||||
{{- $addonsPath := .Values.persistence.addons.targetSelector.main.main.mountPath -}}
|
||||
|
||||
{{- $pgdb := .Values.cnpg.main.database -}}
|
||||
{{- $pguser := .Values.cnpg.main.user -}}
|
||||
{{- $pgpassword := .Values.cnpg.main.creds.password | trimAll "\"" -}}
|
||||
{{- $pghost := .Values.cnpg.main.creds.host | trimAll "\"" -}}
|
||||
|
||||
{{/* xmlrpc* keys are deprecated and http* keys are used in their place */}}
|
||||
{{- $reservedKeys := (list "data_dir" "addons_path" "http_enable" "http_interface"
|
||||
"http_port" "xmlrpc" "xmlrpc_port" "xmlrpc_interface"
|
||||
"db_port" "db_host" "db_name" "db_user" "db_sslmode"
|
||||
"db_password") -}}
|
||||
{{- $userKeys := list -}}
|
||||
|
||||
odoo-config:
|
||||
enabled: true
|
||||
data:
|
||||
odoo.conf: |
|
||||
[options]
|
||||
; Paths
|
||||
data_dir = {{ $odooPath }}
|
||||
addons_path = {{ $addonsPath }}
|
||||
; Network Details
|
||||
http_enable = True
|
||||
http_port = {{ $mainPort }}
|
||||
; Database Details
|
||||
db_port = 5432
|
||||
db_host = {{ $pghost }}
|
||||
db_name = {{ $pgdb }}
|
||||
db_user = {{ $pguser }}
|
||||
db_sslmode = disable
|
||||
db_password = {{ $pgpassword }}
|
||||
{{- range $opt := .Values.odoo.additionalConf -}}
|
||||
{{- if (mustHas $opt.key $reservedKeys) -}}
|
||||
{{- fail (printf "Odoo - Key [%v] is not allowed to be modified") -}}
|
||||
{{- end -}}
|
||||
{{- $userKeys = mustAppend $userKeys $opt.key -}}
|
||||
{{- printf "%s = %s" $opt.key $opt.value | nindent 8 -}}
|
||||
{{- end -}}
|
||||
{{- if not (deepEqual $userKeys (uniq $userKeys)) -}}
|
||||
{{- fail (printf "Odoo - Additional configuration keys must be unique, but got [%v]" (join ", " $userKeys)) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
@@ -0,0 +1,11 @@
|
||||
{{/* Make sure all variables are set properly */}}
|
||||
{{- include "tc.v1.common.loader.init" . -}}
|
||||
|
||||
{{/* Render configmaps for all pods */}}
|
||||
{{- $configmaps := include "odoo.configmaps" . | fromYaml -}}
|
||||
{{- if $configmaps -}}
|
||||
{{- $_ := mustMergeOverwrite .Values.configmap $configmaps -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/* Render the templates */}}
|
||||
{{- include "tc.v1.common.loader.apply" . -}}
|
||||
@@ -0,0 +1,99 @@
|
||||
image:
|
||||
repository: tccr.io/truecharts/odoo
|
||||
pullPolicy: IfNotPresent
|
||||
tag: v16.0.0@sha256:9a0e0d913dc6c4ed5904ae233dc2de7fa1a00f10eb5a66f21e1f695c62933a1d
|
||||
|
||||
securityContext:
|
||||
container:
|
||||
readOnlyRootFilesystem: false
|
||||
runAsUser: 101
|
||||
runAsGroup: 101
|
||||
|
||||
service:
|
||||
main:
|
||||
ports:
|
||||
main:
|
||||
port: 8069
|
||||
|
||||
odoo:
|
||||
additionalConf: []
|
||||
|
||||
workload:
|
||||
main:
|
||||
podSpec:
|
||||
initContainers:
|
||||
init-db:
|
||||
type: install
|
||||
enabled: true
|
||||
imageSelector: "image"
|
||||
env:
|
||||
ODOO_RC: /etc/odoo/odoo.conf
|
||||
command:
|
||||
- /bin/bash
|
||||
args:
|
||||
- -c
|
||||
- |
|
||||
/usr/bin/odoo --config=/etc/odoo/odoo.conf \
|
||||
--stop-after-init \
|
||||
--without-demo=all \
|
||||
--init=base
|
||||
containers:
|
||||
main:
|
||||
probes:
|
||||
liveness:
|
||||
enabled: true
|
||||
type: http
|
||||
path: /web/health
|
||||
readiness:
|
||||
enabled: true
|
||||
type: http
|
||||
path: /web/health
|
||||
startup:
|
||||
enabled: true
|
||||
type: http
|
||||
path: /web/health
|
||||
env:
|
||||
ODOO_RC: /etc/odoo/odoo.conf
|
||||
|
||||
persistence:
|
||||
odoo:
|
||||
enabled: true
|
||||
targetSelector:
|
||||
main:
|
||||
main:
|
||||
mountPath: "/var/lib/odoo"
|
||||
init-db:
|
||||
mountPath: "/var/lib/odoo"
|
||||
addons:
|
||||
enabled: true
|
||||
targetSelector:
|
||||
main:
|
||||
main:
|
||||
mountPath: "/mnt/extra-addons"
|
||||
init-db:
|
||||
mountPath: "/mnt/extra-addons"
|
||||
odoo-config:
|
||||
enabled: true
|
||||
type: configmap
|
||||
objectName: odoo-config
|
||||
targetSelector:
|
||||
main:
|
||||
main:
|
||||
mountPath: /etc/odoo/odoo.conf
|
||||
subPath: odoo.conf
|
||||
readOnly: true
|
||||
init-db:
|
||||
mountPath: /etc/odoo/odoo.conf
|
||||
subPath: odoo.conf
|
||||
readOnly: true
|
||||
|
||||
# Enabled postgres
|
||||
cnpg:
|
||||
main:
|
||||
enabled: true
|
||||
user: odoo
|
||||
database: odoo
|
||||
|
||||
portal:
|
||||
open:
|
||||
enabled: true
|
||||
Reference in New Issue
Block a user