Skip to content

Commit

Permalink
cluster: Allow kubevirtci tag overriding (#432)
Browse files Browse the repository at this point in the history
It is helpful either manually or for example
when used from CNAO, to use same tag of the cluster that CNAO deployed.
Otherwise a kubevirtci tag mismatch can cause failures once running
KMP e2e tests from CNAO.

Signed-off-by: Or Shoval <[email protected]>
  • Loading branch information
oshoval authored Jul 4, 2024
1 parent 1478ec9 commit 98d8b82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cluster/cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

export KUBEVIRT_PROVIDER=${KUBEVIRT_PROVIDER:-'k8s-1.25'}
export KUBEVIRTCI_TAG='2211021552-8cca8c0'
export KUBEVIRTCI_TAG=${KUBEVIRTCI_TAG:-2211021552-8cca8c0}

KUBEVIRTCI_REPO='https://github.com/kubevirt/kubevirtci.git'
# The CLUSTER_PATH var is used in cluster folder and points to the _kubevirtci where the cluster is deployed from.
Expand Down
2 changes: 1 addition & 1 deletion hack/bump-kubevirtci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
KUBEVIRTCI_TAG=$(curl -L -Ss https://storage.googleapis.com/kubevirt-prow/release/kubevirt/kubevirtci/latest)
[[ ${#KUBEVIRTCI_TAG} != "18" ]] && echo "error getting KUBEVIRTCI_TAG" && exit 1

sed -i "s/export KUBEVIRTCI_TAG=.*/export KUBEVIRTCI_TAG='${KUBEVIRTCI_TAG}'/g" cluster/cluster.sh
sed -i "s/\(KUBEVIRTCI_TAG:-\)[^}]*/\1${KUBEVIRTCI_TAG}/" cluster/cluster.sh

git --no-pager diff cluster/cluster.sh | grep KUBEVIRTCI_TAG || true

0 comments on commit 98d8b82

Please sign in to comment.