Skip to content

Commit 710d520

Browse files
merllsvcAPLBot
andauthored
fix: core tag in api deployment (#2767)
Co-authored-by: svcAPLBot <[email protected]>
1 parent eaee9d2 commit 710d520

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

values/otomi-api/otomi-api.gotmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
{{- $sopsEnv := tpl (readFile "../../helmfile.d/snippets/sops-env.gotmpl") $sops }}
1212
{{- $version := $v.versions | get "api" }}
1313
{{- $isSemver := regexMatch "^[0-9.]+" $version }}
14-
{{- $toolsVersion := $v.versions | get "tools" }}
15-
{{- $toolsIsSemver := regexMatch "^[0-9.]+" $toolsVersion }}
14+
{{- $coreVersion := $v.otomi.version }}
15+
{{- $coreIsSemver := regexMatch "^[0-9.]+" $coreVersion }}
1616

1717

1818
replicaCount: 1
@@ -31,8 +31,8 @@ tools:
3131
{{- if $v.otomi.linodeLkeImageRepository }}
3232
repository: "{{ $v.otomi.linodeLkeImageRepository }}/docker/linode/apl-core"
3333
{{- end }}
34-
tag: {{ printf "%s%s" ($toolsIsSemver | ternary "v" "") $toolsVersion }}
35-
pullPolicy: {{ $toolsIsSemver | ternary "IfNotPresent" "Always" }}
34+
tag: {{ $coreVersion | quote }}
35+
pullPolicy: {{ $coreIsSemver | ternary "IfNotPresent" "Always" }}
3636
resources: {{- $o.resources.tools | toYaml | nindent 4 }}
3737
env:
3838
DEBUG: '*'

0 commit comments

Comments
 (0)