diff --git a/templates/odoo-deployment.yaml b/templates/odoo-deployment.yaml index d5e0334..a295c19 100644 --- a/templates/odoo-deployment.yaml +++ b/templates/odoo-deployment.yaml @@ -139,6 +139,13 @@ spec: # start; layers themselves are still cached so the pull is # cheap (~50 ms when content is unchanged, fresh otherwise). {{- range $i, $a := .Values.addons }} + {{- /* Skip odoo-builtin rows — they ship inside the odoo + image, have no addon image to materialize, and have + empty $a.image / $a.version which would render + `image: :` and break YAML parsing. They get tracked in + the overlay (Phase 2 Promote work, #344) for + reconcile + audit but produce no init container. */ -}} + {{- if and $a.code $a.image $a.version (ne $a.source "odoo-builtin") }} - name: addon-{{ $a.code | replace "_" "-" | lower }} image: {{ $a.image }}:{{ $a.version }} imagePullPolicy: Always @@ -147,6 +154,7 @@ spec: mountPath: /target {{- end }} {{- end }} + {{- end }} containers: - name: odoo image: "{{ .Values.odoo.image }}:{{ .Values.odoo.tag }}"