test version_map generator

This commit is contained in:
Andrei Kvapil
2024-01-04 16:24:01 +01:00
parent f2015d656c
commit 662864a90c
4 changed files with 5 additions and 6 deletions

View File

@@ -20,8 +20,8 @@ miss_map=$(echo "$new_map" | awk 'NR==FNR { new_map[$1 " " $2] = $3; next } { if
resolved_miss_map=$(
echo "$miss_map" | while read chart version commit; do
if [ "$commit" = HEAD ]; then
line=$(awk '/^version:/ {print NR; exit}' "$chart/Chart.yaml")
change_commit=$(git --no-pager blame -L20,+1 "$chart/Chart.yaml" | awk '{print $1}')
line=$(git show HEAD:"$chart/Chart.yaml" | awk '/^version:/ {print NR; exit}')
change_commit=$(git --no-pager blame -L20,+1 HEAD -- "$chart/Chart.yaml" | awk '{print $1}')
commit=$(git describe --always "$change_commit~1")
fi
echo "$chart $version $commit"

View File

@@ -7,5 +7,6 @@ rabbitmq 0.1.0 HEAD
redis 0.1.0 HEAD
tcp-balancer 0.1.0 HEAD
virtual-machine 0.1.3 be43e42
virtual-machine 0.1.4 HEAD
virtual-machine 0.1.4 f2015d6
virtual-machine 0.1.5 HEAD
vpn 0.1.0 HEAD

View File

@@ -17,7 +17,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.4
version: 0.1.5
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to

View File

@@ -5,8 +5,6 @@ metadata:
name: {{ include "virtual-machine.fullname" . }}
labels:
{{- include "virtual-machine.labels" . | nindent 4 }}
annotations:
a: b
spec:
running: true
template: