From aa7ac0f0922b721a5e9f3963e44db29c1f99510e Mon Sep 17 00:00:00 2001 From: Karel Simon Date: Tue, 22 Oct 2024 10:19:26 +0200 Subject: [PATCH] feat: use windows images from artifactory these images will be periodically updated Signed-off-by: Karel Simon --- automation/test-windows.sh | 136 ++++++++++++++++--------------------- automation/test.sh | 86 +++++++++++++---------- 2 files changed, 112 insertions(+), 110 deletions(-) diff --git a/automation/test-windows.sh b/automation/test-windows.sh index b1a378e0..a16d07a8 100755 --- a/automation/test-windows.sh +++ b/automation/test-windows.sh @@ -6,71 +6,6 @@ namespace="kubevirt" template_name="windows2k22" username="Administrator" -dv_name="${TARGET}-datavolume-original" - -oc apply -n ${namespace} -f - < config.json + + oc registry login --registry="ibmc.artifactory.cnv-qe.rhood.us" \ + --auth-basic="${id}:${token}" \ + --to=config.json + + oc set data secret/pull-secret -n openshift-config --from-file=.dockerconfigjson=config.json + fi + fi +fi + # Latest released Kubevirt version export KUBEVIRT_VERSION=$(latest_version "kubevirt") @@ -108,8 +160,6 @@ EOF oc wait --for=condition=Updated --timeout=900s machineconfigpool worker fi -namespace="kubevirt" - _curl() { # this dupes the baseline "curl" command line, but is simpler # wrt shell quoting/expansion. @@ -120,13 +170,6 @@ _curl() { fi } -ocenv="OC" - -if [ -z "$CLUSTERENV" ] -then - export CLUSTERENV=$ocenv -fi - git submodule update --init make generate @@ -144,8 +187,6 @@ chmod +x virtctl oc apply -f https://github.com/kubevirt/kubevirt/releases/download/${KUBEVIRT_VERSION}/kubevirt-operator.yaml oc apply -f https://github.com/kubevirt/kubevirt/releases/download/${KUBEVIRT_VERSION}/kubevirt-cr.yaml -sample=10 -current_time=0 timeout=600 # Waiting for kubevirt cr to report available @@ -153,29 +194,6 @@ oc wait --for=condition=Available --timeout=${timeout}s kubevirt/kubevirt -n $na oc patch kubevirt kubevirt -n $namespace --type merge -p '{"spec":{"configuration":{"developerConfiguration":{"featureGates": ["DataVolumes", "CPUManager", "NUMA", "DownwardMetrics", "VMPersistentState"]}}}}' -key="/tmp/secrets/accessKeyId" -token="/tmp/secrets/secretKey" - -if [ "${CLUSTERENV}" == "$ocenv" ] -then - if test -f "$key" && test -f "$token"; then - id=$(cat $key | tr -d '\n' | base64) - token=$(cat $token | tr -d '\n' | base64 | tr -d ' \n') - - oc apply -n $namespace -f - <