feat(chart): air-gap-friendly Odoo + Postgres image refs (B.10)
This commit is contained in:
@@ -28,6 +28,14 @@ spec:
|
||||
# values.yaml would leave the existing pod alone.
|
||||
odoosky.io/addons-hash: {{ .Values.addons | toJson | sha256sum | trunc 16 }}
|
||||
spec:
|
||||
{{- with .Values.imageMirror.pullSecret }}
|
||||
# Air-gap support (B.10): when imageMirror.pullSecret is set,
|
||||
# K8s authenticates against the mirror with this Secret to pull
|
||||
# the upstream Odoo image. Default empty = anonymous (Docker
|
||||
# Hub library images need no auth).
|
||||
imagePullSecrets:
|
||||
- name: {{ . }}
|
||||
{{- end }}
|
||||
# fsGroup=101 makes the kubelet recursively chown the filestore
|
||||
# PVC's root inode to gid=101 on attach. Odoo runs as uid 101
|
||||
# and writes /var/lib/odoo/sessions on first request; without
|
||||
@@ -59,7 +67,7 @@ spec:
|
||||
# and create Odoo's tables. After base is installed,
|
||||
# `-i base` is a no-op so subsequent boots add ~5s.
|
||||
- name: db-init
|
||||
image: "{{ .Values.odoo.image }}:{{ .Values.odoo.tag }}"
|
||||
image: "{{ if .Values.imageMirror.registry }}{{ .Values.imageMirror.registry }}/{{ end }}{{ .Values.odoo.image }}:{{ .Values.odoo.tag }}"
|
||||
imagePullPolicy: IfNotPresent
|
||||
# Override the official Odoo entrypoint so we can run psql
|
||||
# before odoo. The image ships with postgresql-client, so
|
||||
@@ -194,7 +202,7 @@ spec:
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: odoo
|
||||
image: "{{ .Values.odoo.image }}:{{ .Values.odoo.tag }}"
|
||||
image: "{{ if .Values.imageMirror.registry }}{{ .Values.imageMirror.registry }}/{{ end }}{{ .Values.odoo.image }}:{{ .Values.odoo.tag }}"
|
||||
imagePullPolicy: IfNotPresent
|
||||
# Pin the active database to our tenant code. Without this
|
||||
# Odoo runs in multi-DB mode and exposes /web/database/manager;
|
||||
|
||||
Reference in New Issue
Block a user