Skip to content

Commit

Permalink
kubevirtci, k3d-sriov: Add presubmit job
Browse files Browse the repository at this point in the history
Signed-off-by: Or Shoval <[email protected]>
  • Loading branch information
oshoval committed Mar 8, 2023
1 parent eccb80f commit 2a41659
Showing 1 changed file with 80 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,86 @@ presubmits:
path: /dev/vfio/
type: Directory
name: vfio
- always_run: true
annotations:
k8s.v1.cni.cncf.io/networks: multus-cni-ns/sriov-passthrough-cni,multus-cni-ns/sriov-passthrough-cni
cluster: prow-workloads
decorate: true
decoration_config:
timeout: 3h0m0s
labels:
preset-dind-enabled: "true"
preset-docker-mirror-proxy: "true"
preset-kubevirtci-installer-pull-token: "true"
rehearsal.allowed: "true"
sriov-pod: "true"
max_concurrency: 1
name: check-up-k3d-1.25-sriov
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: sriov-pod
operator: In
values:
- "true"
topologyKey: kubernetes.io/hostname
- labelSelector:
matchExpressions:
- key: sriov-pod-multi
operator: In
values:
- "true"
topologyKey: kubernetes.io/hostname
containers:
- command:
- /usr/local/bin/runner.sh
- /bin/bash
- -ce
- |
trap "echo teardown && make cluster-down" EXIT SIGINT
make cluster-up
./cluster-up/cluster/k3d/check-cluster-up.sh
env:
- name: KUBEVIRT_PROVIDER
value: k3d-1.25-sriov
- name: RUN_KUBEVIRT_CONFORMANCE
value: "true"
- name: SONOBUOY_EXTRA_ARGS
value: --plugin-env kubevirt-conformance.E2E_FOCUS=SRIOV
image: quay.io/kubevirtci/golang-legacy:v20220810-a8f2e6c
name: ""
resources:
requests:
memory: 15Gi
securityContext:
privileged: true
volumeMounts:
- mountPath: /lib/modules
name: modules
readOnly: true
- mountPath: /sys/fs/cgroup
name: cgroup
- mountPath: /dev/vfio/
name: vfio
nodeSelector:
hardwareSupport: sriov-nic
priorityClassName: sriov
volumes:
- hostPath:
path: /lib/modules
type: Directory
name: modules
- hostPath:
path: /sys/fs/cgroup
type: Directory
name: cgroup
- hostPath:
path: /dev/vfio/
type: Directory
name: vfio
- always_run: false
annotations:
k8s.v1.cni.cncf.io/networks: multus-cni-ns/sriov-passthrough-cni,multus-cni-ns/sriov-passthrough-cni
Expand Down

0 comments on commit 2a41659

Please sign in to comment.