Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RC release version tag in chart #5727

Merged
merged 1 commit into from
Jun 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy/Chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: radius
# version is the chart version, which will be replaced when this chart is packaged.
version: '0.42.42-dev'
# appVersion is the version of Radius, which will be replaced when this chart is packaged.
appVersion: 'latest'
appVersion: 'edge'
home: https://radapp.dev
sources:
- https://github.com/project-radius/radius/tree/main/deploy/Chart
Expand Down
4 changes: 3 additions & 1 deletion deploy/Chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{{/* Parse version and extract major and manor version from Appversion for image tag. */}}
{{- define "radius.versiontag" }}
{{- $version := .Chart.AppVersion }}
{{- /* Set latest if version is edge */}}
{{- if eq $version "edge" }}
{{- $version = "latest" }}
{{- end -}}
{{- if ne $version "latest" }}
{{- /* Tag version will be 'major.minor' unless version is latest or rc release */}}
{{- if and (ne $version "latest") (not (contains "rc" $version)) }}
{{- $ver := split "." $version }}
{{- $version = printf "%s.%s" $ver._0 $ver._1 }}
{{- end -}}
Expand Down