mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-07-29 19:04:35 +00:00
chore(e2e-setup): Bump to KubeVirt 1.4.0
Bump to KubeVirt 1.4.0 and drop manual deployment of common-instancetypes as they are now deployed by KubeVirt by default. Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
This commit is contained in:
@@ -28,7 +28,7 @@ set_default_params() {
|
|||||||
KUBECTL=${KUBECTL:-$BIN_DIR/kubectl}
|
KUBECTL=${KUBECTL:-$BIN_DIR/kubectl}
|
||||||
KUBECTL_VERSION=${KUBECTL_VERSION:-v1.31.2}
|
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_CDI_VERSION=${KUBEVIRT_CDI_VERSION:-v1.60.3}
|
||||||
KUBEVIRT_USE_EMULATION=${KUBEVIRT_USE_EMULATION:-"false"}
|
KUBEVIRT_USE_EMULATION=${KUBEVIRT_USE_EMULATION:-"false"}
|
||||||
|
|
||||||
@@ -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"
|
${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() {
|
deploy_cnao() {
|
||||||
echo "Deploying CNAO (with multus and bridge CNIs)"
|
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"
|
${KUBECTL} apply -f "https://github.com/kubevirt/cluster-network-addons-operator/releases/download/${CNAO_VERSION}/namespace.yaml"
|
||||||
@@ -313,7 +307,7 @@ cleanup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
usage() {
|
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() {
|
set_default_options() {
|
||||||
@@ -325,7 +319,6 @@ set_default_options() {
|
|||||||
OPT_CONFIGURE_SECONDARY_NETWORK=false
|
OPT_CONFIGURE_SECONDARY_NETWORK=false
|
||||||
OPT_DEPLOY_KUBEVIRT=false
|
OPT_DEPLOY_KUBEVIRT=false
|
||||||
OPT_DEPLOY_KUBEVIRT_CDI=false
|
OPT_DEPLOY_KUBEVIRT_CDI=false
|
||||||
OPT_DEPLOY_KUBEVIRT_COMMON_INSTANCETYPES=false
|
|
||||||
OPT_DEPLOY_CNAO=false
|
OPT_DEPLOY_CNAO=false
|
||||||
OPT_CREATE_NAD=false
|
OPT_CREATE_NAD=false
|
||||||
OPT_CLEANUP=false
|
OPT_CLEANUP=false
|
||||||
@@ -342,7 +335,6 @@ parse_args() {
|
|||||||
--configure-secondary-network) OPT_CONFIGURE_SECONDARY_NETWORK=true ;;
|
--configure-secondary-network) OPT_CONFIGURE_SECONDARY_NETWORK=true ;;
|
||||||
--deploy-kubevirt) OPT_DEPLOY_KUBEVIRT=true ;;
|
--deploy-kubevirt) OPT_DEPLOY_KUBEVIRT=true ;;
|
||||||
--deploy-kubevirt-cdi) OPT_DEPLOY_KUBEVIRT_CDI=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 ;;
|
--deploy-cnao) OPT_DEPLOY_CNAO=true ;;
|
||||||
--create-nad) OPT_CREATE_NAD=true ;;
|
--create-nad) OPT_CREATE_NAD=true ;;
|
||||||
--cleanup) OPT_CLEANUP=true ;;
|
--cleanup) OPT_CLEANUP=true ;;
|
||||||
@@ -384,7 +376,6 @@ if [ "${ARGCOUNT}" -eq "0" ]; then
|
|||||||
OPT_CONFIGURE_SECONDARY_NETWORK=true
|
OPT_CONFIGURE_SECONDARY_NETWORK=true
|
||||||
OPT_DEPLOY_KUBEVIRT=true
|
OPT_DEPLOY_KUBEVIRT=true
|
||||||
OPT_DEPLOY_KUBEVIRT_CDI=true
|
OPT_DEPLOY_KUBEVIRT_CDI=true
|
||||||
OPT_DEPLOY_KUBEVIRT_COMMON_INSTANCETYPES=true
|
|
||||||
OPT_DEPLOY_CNAO=true
|
OPT_DEPLOY_CNAO=true
|
||||||
OPT_CREATE_NAD=true
|
OPT_CREATE_NAD=true
|
||||||
fi
|
fi
|
||||||
@@ -430,10 +421,6 @@ if [ "${OPT_DEPLOY_KUBEVIRT_CDI}" == true ]; then
|
|||||||
deploy_kubevirt_containerized_data_importer
|
deploy_kubevirt_containerized_data_importer
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${OPT_DEPLOY_KUBEVIRT_COMMON_INSTANCETYPES}" == true ]; then
|
|
||||||
deploy_kubevirt_common_instancetypes
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${OPT_DEPLOY_CNAO}" == true ]; then
|
if [ "${OPT_DEPLOY_CNAO}" == true ]; then
|
||||||
deploy_cnao
|
deploy_cnao
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user