Skip to content

Commit

Permalink
chore(system-tests-k8s): kubevirt api changes (#3095)
Browse files Browse the repository at this point in the history
Adjusting VM manifests, required due to changes in newer kubevirt
version. Enabling workflow on schedule and workflow dispatch events.
  • Loading branch information
marko-k0 authored Dec 11, 2024
1 parent 858c038 commit 2871cec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/system-tests-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ name: System Tests K8s
# --field jobs="32"

on:
# XXX: temporarily disabling until we have kubevirt 1.4.0
# schedule:
# - cron: "0 3 * * *"
# pull_request:
# paths:
# - '.github/workflows/system-tests-k8s.yml'
schedule:
- cron: "0 3 * * *"
pull_request:
paths:
- '.github/workflows/system-tests-k8s.yml'
workflow_dispatch:
inputs:
targets:
Expand All @@ -30,7 +29,7 @@ env:
github.event_name == 'workflow_dispatch' && github.event.inputs.targets ||
'//rs/tests/nns:node_removal_from_registry_test' }}
JOBS: |
${{ github.event_name == 'schedule' && '20' ||
${{ github.event_name == 'schedule' && '12' ||
github.event_name == 'workflow_dispatch' && github.event.inputs.jobs ||
'32' }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
Expand Down
8 changes: 4 additions & 4 deletions rs/tests/driver/src/k8s/virtualmachine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ spec:
"cni.projectcalico.org/ipAddrs": "[\"{ipv4}\", \"{ipv6}\"]"
labels:
kubevirt.io/vm: {name}
kubevirt.io/network: passt
spec:
domain:
cpu:
Expand All @@ -46,7 +45,8 @@ spec:
bus: virtio
interfaces:
- name: default
passt: {}
binding:
name: passt
ports:
- port: 22
- port: 8100
Expand Down Expand Up @@ -129,7 +129,6 @@ spec:
"cni.projectcalico.org/ipAddrs": "[\"{ipv4}\", \"{ipv6}\"]"
labels:
kubevirt.io/vm: {name}
kubevirt.io/network: passt
spec:
domain:
cpu:
Expand All @@ -149,7 +148,8 @@ spec:
serial: "config"
interfaces:
- name: default
passt: {}
binding:
name: passt
ports:
- port: 22
- port: 80
Expand Down

0 comments on commit 2871cec

Please sign in to comment.