Skip to content

Commit 2733c69

Browse files
authored
Merge pull request #1728 from amacaskill/log-go-version
Install golang version inside run-k8s-integration-ci.sh script run by prow tests
2 parents 936e59a + de311d5 commit 2733c69

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/run-k8s-integration-ci.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ readonly test_disk_image_snapshot=${TEST_DISK_IMAGE_SNAPSHOT:-true}
3333

3434
readonly GCE_PD_TEST_FOCUS="PersistentVolumes\sGCEPD|[V|v]olume\sexpand|\[sig-storage\]\sIn-tree\sVolumes\s\[Driver:\sgcepd\]|allowedTopologies|Pod\sDisks|PersistentVolumes\sDefault"
3535

36+
# Install golang.
37+
version=1.22.3
38+
wget -O go_tar.tar.gz https://go.dev/dl/go${version}.linux-amd64.tar.gz -q
39+
# Remove the existing GoLang installation directory
40+
rm -rf /usr/local/go && tar -xzf go_tar.tar.gz -C /usr/local
41+
# Add the GoLang binary directory to systems PATH env, allowing prow tests
42+
# to run go commands with this go version.
43+
export PATH=$PATH:/usr/local/go/bin && go version && rm go_tar.tar.gz
44+
3645
storage_classes=sc-balanced.yaml,sc-ssd.yaml,sc-xfs.yaml
3746

3847
if [[ $test_pd_labels = true ]] ; then

0 commit comments

Comments
 (0)