Skip to content

Commit 04ab03a

Browse files
committed
test: add helm chart tgz file verification
fix test error
1 parent ab84034 commit 04ab03a

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

.github/workflows/darwin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Set up Go 1.x
1111
uses: actions/setup-go@v2
1212
with:
13-
go-version: ^1.13
13+
go-version: ^1.15
1414
id: go
1515
- name: Check out code into the Go module directory
1616
uses: actions/checkout@v2

.github/workflows/ubuntu.yml renamed to .github/workflows/linux.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Set up Go 1.x
1313
uses: actions/setup-go@v2
1414
with:
15-
go-version: ^1.13
15+
go-version: ^1.15
1616
id: go
1717

1818
- name: Check out code into the Go module directory

.github/workflows/windows.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
build:
77
strategy:
88
matrix:
9-
go-versions: [1.13.x]
9+
go-versions: [1.15.x]
1010
platform: [windows-latest]
1111
runs-on: ${{ matrix.platform }}
1212
steps:

hack/verify-helm-chart.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,23 @@ validate_image "${expected_node_driver_registrar}" "${node_driver_registrar}"
7878
validate_image "${expected_blob_image}" "${blob_image}"
7979

8080
echo "Images in deploy/ matches those in the latest helm chart."
81+
82+
# verify whether latest chart config has changed
83+
for dir in charts/*
84+
do
85+
if [ -d $dir ]; then
86+
if [ -f $dir/*.tgz ]; then
87+
tar -xvf $dir/*.tgz -C $dir/
88+
fi
89+
fi
90+
done
91+
92+
diff=`git diff`
93+
if [[ -n "${diff}" ]]; then
94+
echo "${diff}"
95+
echo
96+
echo "latest chart config has changed, pls run \"helm package charts/latest/blob-csi-driver -d charts/latest/\" to update tgz file"
97+
exit 1
98+
fi
99+
100+
echo "latest chart tgz file verified."

0 commit comments

Comments
 (0)