Skip to content

Commit 48d6390

Browse files
authored
Merge pull request #279 from elezar/make-app-version-consistent
Remove v prefix from appVersion
2 parents 51de3cb + 91555a9 commit 48d6390

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

deployments/helm/nvidia-dra-driver-gpu/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ version: 25.3.0-rc.1
2525
# It is recommended to use it with quotes.
2626

2727
# Note(JP): this currently defines the default `tag` value in a k8s
28-
# image specification, and therefore must currently be v-prefixed.
29-
appVersion: "v25.3.0-rc.1"
28+
# image specification. A "v" is prefixed in our template helpers to ensure consistency.
29+
appVersion: "25.3.0-rc.1"

deployments/helm/nvidia-dra-driver-gpu/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Selector labels
8080
Full image name with tag
8181
*/}}
8282
{{- define "nvidia-dra-driver-gpu.fullimage" -}}
83-
{{- $tag := printf "%s" .Chart.AppVersion }}
83+
{{- $tag := printf "v%s" .Chart.AppVersion }}
8484
{{- .Values.image.repository -}}:{{- .Values.image.tag | default $tag -}}
8585
{{- end }}
8686

hack/package-helm-charts.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@ set -o pipefail
1919
# if arg1 is set, it will be used as the version number
2020
if [ -z "$1" ]; then
2121
VERSION=$(awk -F= '/^VERSION/ { print $2 }' versions.mk | tr -d '[:space:]')
22-
# Remove any v prefix, if exists.
23-
VERSION="${VERSION#v}"
2422
else
2523
VERSION=$1
2624
fi
27-
VERSION=${VERSION}
25+
# Remove any v prefix, if exists.
26+
VERSION="${VERSION#v}"
2827

2928

3029
# Note(JP): the goal below is for VERSION to always be

0 commit comments

Comments
 (0)