From 14488c8b73d7363315cbb5676646f8ff2804a9e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Andr=C3=A9?= Date: Tue, 7 Feb 2023 15:37:12 +0100 Subject: [PATCH] CAPO: use rhel8 base image to run unit tests The golang-1.17 image is based on centos 7, which is too old for our needs. Use a rhel8 based image instead. Also unset GOFLAGS to remove `-mod=vendor` since that prevents us from building envtest, and set XDG variables to workaround permission issues. --- .../openshift-cluster-api-provider-openstack-main.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ci-operator/config/openshift/cluster-api-provider-openstack/openshift-cluster-api-provider-openstack-main.yaml b/ci-operator/config/openshift/cluster-api-provider-openstack/openshift-cluster-api-provider-openstack-main.yaml index 6c92c86df1759..e24f298d2c6b6 100644 --- a/ci-operator/config/openshift/cluster-api-provider-openstack/openshift-cluster-api-provider-openstack-main.yaml +++ b/ci-operator/config/openshift/cluster-api-provider-openstack/openshift-cluster-api-provider-openstack-main.yaml @@ -2,7 +2,7 @@ build_root: image_stream_tag: name: release namespace: openshift - tag: golang-1.17 + tag: rhel-8-release-golang-1.19-openshift-4.14 resources: '*': requests: @@ -10,7 +10,8 @@ resources: memory: 200Mi tests: - as: unit - commands: make test + commands: GOFLAGS= XDG_DATA_HOME=/tmp/.local/share XDG_CACHE_HOME=/tmp/.cache make + test container: from: src optional: true