diff --git a/odoo/templates/cm.yaml b/odoo/templates/cm.yaml index d0c2adb..8e3f87c 100644 --- a/odoo/templates/cm.yaml +++ b/odoo/templates/cm.yaml @@ -10,4 +10,4 @@ data: ODOO_INIT_LANG: {{ .Values.initLang | quote }} ODOO_INIT_LOGIN: {{ .Values.initLogin | quote }} ODOO_INIT_PASSWORD: {{ .Values.initPassword | quote }} - DB_FILTER: {{ .Values.database }} + DB_NAME: {{ .Values.database }} diff --git a/odoo/templates/deploy-staging.yaml b/odoo/templates/deploy-staging.yaml index fede6ec..e284bed 100644 --- a/odoo/templates/deploy-staging.yaml +++ b/odoo/templates/deploy-staging.yaml @@ -149,7 +149,7 @@ spec: - configMapRef: name: {{ .Release.Name }}-configmap env: - - name: DB_FILTER + - name: DB_NAME value: {{ .Values.database }}-{{ .Values.staging.name }} {{- if .Values.cnpg.enabled }} - name: PGHOST diff --git a/task b/task index 5c1aa7d..fd1e0fe 100755 --- a/task +++ b/task @@ -144,10 +144,17 @@ function install-vitepress() { function setup-hosts() { echo "Adding entries to /etc/hosts ..." grep -qxF '127.0.0.1 knd.local' /etc/hosts || echo "127.0.0.1 knd.local" | sudo tee -a /etc/hosts > /dev/null + + grep -qxF "127.0.0.1 odoo.local" /etc/hosts || echo "127.0.0.1 odoo.local" | sudo tee -a /etc/hosts > /dev/null grep -qxF "127.0.0.1 odoo.knd.local" /etc/hosts || echo "127.0.0.1 odoo.knd.local" | sudo tee -a /etc/hosts > /dev/null grep -qxF "127.0.0.1 staging.odoo.knd.local" /etc/hosts || echo "127.0.0.1 staging.odoo.knd.local" | sudo tee -a /etc/hosts > /dev/null - grep -qxF "127.0.0.1 odoo.local" /etc/hosts || echo "127.0.0.1 odoo.local" | sudo tee -a /etc/hosts > /dev/null + + grep -qxF "127.0.0.1 restic.local" /etc/hosts || echo "127.0.0.1 restic.local" | sudo tee -a /etc/hosts > /dev/null + grep -qxF "127.0.0.1 restic.knd.local" /etc/hosts || echo "127.0.0.1 restic.knd.local" | sudo tee -a /etc/hosts > /dev/null + grep -qxF "127.0.0.1 staging.restic.knd.local" /etc/hosts || echo "127.0.0.1 staging.restic.knd.local" | sudo tee -a /etc/hosts > /dev/null + grep -qxF "127.0.0.1 hugo.knd.local" /etc/hosts || echo "127.0.0.1 hugo.knd.local" | sudo tee -a /etc/hosts > /dev/null + grep -qxF "127.0.0.1 vuepress.knd.local" /etc/hosts || echo "127.0.0.1 vuepress.knd.local" | sudo tee -a /etc/hosts > /dev/null } diff --git a/values/restic.knd.local.yaml b/values/restic.knd.local.yaml new file mode 100644 index 0000000..511164b --- /dev/null +++ b/values/restic.knd.local.yaml @@ -0,0 +1,4 @@ +ingress + host: restic.cloud.local +staging: + enabled: true \ No newline at end of file