Skip to content

Commit

Permalink
Merge pull request #150 from 0xFelix/kv-1.4.0
Browse files Browse the repository at this point in the history
chore(e2e-setup): Bump to KubeVirt 1.4.0
  • Loading branch information
kubevirt-bot authored Nov 19, 2024
2 parents 77939bb + ac9d7a1 commit bd121a1
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions hack/e2e-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ set_default_params() {
KUBECTL=${KUBECTL:-$BIN_DIR/kubectl}
KUBECTL_VERSION=${KUBECTL_VERSION:-v1.31.2}

KUBEVIRT_VERSION=${KUBEVIRT_VERSION:-v1.3.1}
KUBEVIRT_VERSION=${KUBEVIRT_VERSION:-v1.4.0}
KUBEVIRT_CDI_VERSION=${KUBEVIRT_CDI_VERSION:-v1.60.3}
KUBEVIRT_USE_EMULATION=${KUBEVIRT_USE_EMULATION:-"false"}

Expand Down Expand Up @@ -241,12 +241,6 @@ deploy_kubevirt_containerized_data_importer() {
${KUBECTL} apply -f "https://github.com/kubevirt/containerized-data-importer/releases/download/${KUBEVIRT_CDI_VERSION}/cdi-cr.yaml"
}

deploy_kubevirt_common_instancetypes() {
echo "Deploying KubeVirt common-instancetypes"
${KUBECTL} patch kubevirt kubevirt --namespace kubevirt --type=merge --patch '{"spec":{"configuration":{"developerConfiguration":{"featureGates": ["CommonInstancetypesDeploymentGate"]}}}}'
${KUBECTL} wait --for=condition=Available kubevirt kubevirt --namespace=kubevirt --timeout=5m
}

deploy_cnao() {
echo "Deploying CNAO (with multus and bridge CNIs)"
${KUBECTL} apply -f "https://github.com/kubevirt/cluster-network-addons-operator/releases/download/${CNAO_VERSION}/namespace.yaml"
Expand Down Expand Up @@ -313,7 +307,7 @@ cleanup() {
}

usage() {
echo -n "$0 [--install-kind] [--install-kubectl] [--configure-inotify-limits] [--create-registry] [--create-cluster] [--deploy-kubevirt] [--deploy-kubevirt-common-instancetypes] [--deploy-cnao] [--create-nad] [--cleanup] [--namespace]"
echo -n "$0 [--install-kind] [--install-kubectl] [--configure-inotify-limits] [--create-registry] [--create-cluster] [--deploy-kubevirt] [--deploy-cnao] [--create-nad] [--cleanup] [--namespace]"
}

set_default_options() {
Expand All @@ -325,7 +319,6 @@ set_default_options() {
OPT_CONFIGURE_SECONDARY_NETWORK=false
OPT_DEPLOY_KUBEVIRT=false
OPT_DEPLOY_KUBEVIRT_CDI=false
OPT_DEPLOY_KUBEVIRT_COMMON_INSTANCETYPES=false
OPT_DEPLOY_CNAO=false
OPT_CREATE_NAD=false
OPT_CLEANUP=false
Expand All @@ -342,7 +335,6 @@ parse_args() {
--configure-secondary-network) OPT_CONFIGURE_SECONDARY_NETWORK=true ;;
--deploy-kubevirt) OPT_DEPLOY_KUBEVIRT=true ;;
--deploy-kubevirt-cdi) OPT_DEPLOY_KUBEVIRT_CDI=true ;;
--deploy-kubevirt-common-instancetypes) OPT_DEPLOY_KUBEVIRT_COMMON_INSTANCETYPES=true ;;
--deploy-cnao) OPT_DEPLOY_CNAO=true ;;
--create-nad) OPT_CREATE_NAD=true ;;
--cleanup) OPT_CLEANUP=true ;;
Expand Down Expand Up @@ -384,7 +376,6 @@ if [ "${ARGCOUNT}" -eq "0" ]; then
OPT_CONFIGURE_SECONDARY_NETWORK=true
OPT_DEPLOY_KUBEVIRT=true
OPT_DEPLOY_KUBEVIRT_CDI=true
OPT_DEPLOY_KUBEVIRT_COMMON_INSTANCETYPES=true
OPT_DEPLOY_CNAO=true
OPT_CREATE_NAD=true
fi
Expand Down Expand Up @@ -430,10 +421,6 @@ if [ "${OPT_DEPLOY_KUBEVIRT_CDI}" == true ]; then
deploy_kubevirt_containerized_data_importer
fi

if [ "${OPT_DEPLOY_KUBEVIRT_COMMON_INSTANCETYPES}" == true ]; then
deploy_kubevirt_common_instancetypes
fi

if [ "${OPT_DEPLOY_CNAO}" == true ]; then
deploy_cnao
fi
Expand Down

0 comments on commit bd121a1

Please sign in to comment.