Skip to content

Commit 16ab3c0

Browse files
Pahud HsiehPahud Hsieh
authored andcommitted
refactor: use floating channel tags for agent image
Instead of regex-stripping beta suffix from appVersion, resolve image tag directly from channel value (stable/beta). Requires PR #878 to publish the floating tags.
1 parent 861616f commit 16ab3c0

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

charts/openab-telegram/templates/_helpers.tpl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ app.kubernetes.io/instance: {{ .Release.Name }}
1818
{{- define "openab-telegram.agentImage" -}}
1919
{{- $tag := .Values.image.tag -}}
2020
{{- if not $tag -}}
21-
{{- if eq .Values.channel "beta" -}}
22-
{{- $tag = .Chart.AppVersion -}}
23-
{{- else -}}
24-
{{- $tag = regexReplaceAll "-beta\\..*" .Chart.AppVersion "" -}}
25-
{{- end -}}
21+
{{- $tag = .Values.channel | default "stable" -}}
2622
{{- end -}}
2723
{{- printf "%s:%s" .Values.image.repository $tag -}}
2824
{{- end }}

0 commit comments

Comments
 (0)