diff --git a/automation/components-functests.setup.sh b/automation/components-functests.setup.sh index 2be5c9c5e..99ad4605e 100644 --- a/automation/components-functests.setup.sh +++ b/automation/components-functests.setup.sh @@ -56,26 +56,35 @@ EOF function deploy_cnao_cr { # Deploy all network addons components with CNAO - cat < cr.yaml + if [[ $USE_KUBEVIRTCI == true ]]; then + cat < cr.yaml apiVersion: networkaddonsoperator.network.kubevirt.io/v1 kind: NetworkAddonsConfig metadata: name: cluster spec: + multus: {} + multusDynamicNetworks: {} + linuxBridge: {} kubeMacPool: rangeStart: "02:00:00:00:00:00" rangeEnd: "02:00:00:00:00:0F" + ovs: {} + macvtap: {} + kubeSecondaryDNS: {} + kubevirtIpamController: {} + imagePullPolicy: Always +EOF + else + cat < cr.yaml +apiVersion: networkaddonsoperator.network.kubevirt.io/v1 +kind: NetworkAddonsConfig +metadata: + name: cluster +spec: kubevirtIpamController: {} imagePullPolicy: Always EOF - - if [[ $USE_KUBEVIRTCI == true ]]; then - echo " linuxBridge: {}" >> cr.yaml - echo " multus: {}" >> cr.yaml - echo " multusDynamicNetworks: {}" >> cr.yaml - echo " ovs: {}" >> cr.yaml - echo " macvtap: {}" >> cr.yaml - echo " kubeSecondaryDNS: {}" >> cr.yaml fi cluster/kubectl.sh apply -f cr.yaml