File tree Expand file tree Collapse file tree
charts/adhoc-odoo/v0.2.9/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,6 +37,14 @@ Get odoo mayor version.
3737{{- printf " %s " (regexReplaceAll " ^([0-9]+\\ .[0-9]+)\\ ..*" .Values.image.tag " $1" ) }}
3838{{- end }}
3939
40+ {{/*
41+ Get odoo minor version.
42+ */ }}
43+ {{- define " adhoc-odoo.odoo-minor-version" -}}
44+ {{- printf " %s " (regexReplaceAll " ^[0-9][0-9]\\ .[0-9]\\ .([0-9][0-9][0-9][0-9])\\ .([0-9][0-9])\\ .([0-9][0-9]).*" .Values.image.tag " $1$2$3" ) }}
45+ {{- end }}
46+
47+
4048{{/*
4149Common labels
4250*/ }}
Original file line number Diff line number Diff line change 5353 securityContext :
5454 {{- toYaml . | nindent 12 }}
5555 {{- end }}
56- {{- if .Values.odoo.entrypoint.repos }}
56+ {{ $minorVersion := include "adhoc-odoo.odoo-minor-version" . | int }}
57+ {{ if and (gt $minorVersion 20250415) ( .Values.odoo.entrypoint.repos) }}
5758 image : " {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}.dev"
5859 {{- else }}
5960 image : " {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
You can’t perform that action at this time.
0 commit comments