skip odoo-builtin rows in addon initContainer loop (regression from #344)
This commit is contained in:
@@ -139,6 +139,13 @@ spec:
|
|||||||
# start; layers themselves are still cached so the pull is
|
# start; layers themselves are still cached so the pull is
|
||||||
# cheap (~50 ms when content is unchanged, fresh otherwise).
|
# cheap (~50 ms when content is unchanged, fresh otherwise).
|
||||||
{{- range $i, $a := .Values.addons }}
|
{{- 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 }}
|
- name: addon-{{ $a.code | replace "_" "-" | lower }}
|
||||||
image: {{ $a.image }}:{{ $a.version }}
|
image: {{ $a.image }}:{{ $a.version }}
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
@@ -147,6 +154,7 @@ spec:
|
|||||||
mountPath: /target
|
mountPath: /target
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: odoo
|
- name: odoo
|
||||||
image: "{{ .Values.odoo.image }}:{{ .Values.odoo.tag }}"
|
image: "{{ .Values.odoo.image }}:{{ .Values.odoo.tag }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user