Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP DNM git actions,ipam: Bump packages #1879

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/kubevirt-ipam-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ jobs:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ main() {
COMPONENT="kubevirt-ipam-controller" source automation/components-functests.setup.sh

cd ${TMP_COMPONENT_PATH}
curl -L https://github.com/kubevirt/ipam-extensions/pull/65.patch | git apply
export KIND_ARGS="-ic -i6 -mne"
make cluster-up
export KUBECONFIG=${TMP_COMPONENT_PATH}/.output/kubeconfig
Expand All @@ -53,6 +54,7 @@ main() {
deploy_cnao
deploy_cnao_cr
./hack/deploy-kubevirt.sh
./cluster/kubectl.sh -n kubevirt patch kubevirt kubevirt --type=merge --patch '{"spec":{"configuration":{"virtualMachineOptions":{"disableSerialConsoleLog":{}}}}}'

cd ${TMP_COMPONENT_PATH}
echo "Run kubevirt-ipam-controller functional tests"
Expand Down
27 changes: 18 additions & 9 deletions automation/components-functests.setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,26 +56,35 @@ EOF
function deploy_cnao_cr {
# Deploy all network addons components with CNAO

cat <<EOF > cr.yaml
if [[ $USE_KUBEVIRTCI == true ]]; then
cat <<EOF > 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 <<EOF > 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
Expand Down
Loading