Skip to content

Commit

Permalink
prow, kubevirt presubmits: Add new jobs for kind-1.22-sriov
Browse files Browse the repository at this point in the history
Following kubevirt/kubevirtci#694, create new presubmits jobs
for the new provider.

Also, adjust kubevirt kind-1.19-sriov presubmits jobs to use
k8s-1.19 nodes image explicitly since the old provider files are gone.
Once we see pull-kubevirt-e2e-kind-1.22-sriov job is stable we can
remove the old one.

Signed-off-by: Or Mergi <ormergi@redhat.com>
  • Loading branch information
ormergi committed Oct 25, 2021
1 parent 36bc96f commit 2612f7b
Showing 1 changed file with 174 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,91 @@ presubmits:
privileged: true
nodeSelector:
type: bare-metal-external
- always_run: false
annotations:
fork-per-release: "true"
k8s.v1.cni.cncf.io/networks: multus-cni-ns/sriov-passthrough-cni,multus-cni-ns/sriov-passthrough-cni
testgrid-dashboards: kubevirt-presubmits
cluster: prow-workloads
decorate: true
decoration_config:
grace_period: 30m0s
timeout: 4h0m0s
labels:
preset-bazel-unnested: "true"
preset-dind-enabled: "true"
preset-docker-mirror-proxy: "true"
preset-shared-images: "true"
rehearsal.allowed: "true"
sriov-pod: "true"
max_concurrency: 10
name: pull-kubevirt-e2e-kind-1.22-sriov-nonroot
optional: true
skip_branches:
- release-\d+\.\d+
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
- automation/test.sh
env:
- name: TARGET
value: kind-1.22-sriov
- name: GIMME_GO_VERSION
value: 1.13.8
- name: FEATURE_GATES
value: NonRoot
- name: KUBEVIRT_NONROOT
value: "true"
image: quay.io/kubevirtci/bootstrap:v20210906-994b913
name: ""
resources:
requests:
memory: 29Gi
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
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:
fork-per-release: "true"
Expand Down Expand Up @@ -842,7 +927,9 @@ presubmits:
- automation/test.sh
env:
- name: TARGET
value: kind-1.19-sriov
value: kind-1.22-sriov
- name: KIND_NODE_IMAGE
value: quay.io/kubevirtci/kindest_node:v1.19.11@sha256:cbecc517bfad65e368cd7975d1e8a4f558d91160c051d0b1d10ff81488f5fb06
- name: GIMME_GO_VERSION
value: 1.13.8
- name: FEATURE_GATES
Expand Down Expand Up @@ -879,6 +966,89 @@ presubmits:
path: /dev/vfio/
type: Directory
name: vfio
- always_run: false
annotations:
fork-per-release: "true"
k8s.v1.cni.cncf.io/networks: multus-cni-ns/sriov-passthrough-cni,multus-cni-ns/sriov-passthrough-cni
testgrid-dashboards: kubevirt-presubmits
cluster: prow-workloads
decorate: true
decoration_config:
grace_period: 30m0s
timeout: 4h0m0s
labels:
preset-bazel-unnested: "true"
preset-dind-enabled: "true"
preset-docker-mirror-proxy: "true"
preset-shared-images: "true"
rehearsal.allowed: "true"
sriov-pod: "true"
max_concurrency: 10
name: pull-kubevirt-e2e-kind-1.22-sriov
optional: true
skip_branches:
- release-\d+\.\d+
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
- automation/test.sh
env:
- name: TARGET
value: kind-1.22-sriov
- name: GIMME_GO_VERSION
value: 1.13.8
- name: KUBEVIRT_NONROOT
value: "true"
image: quay.io/kubevirtci/bootstrap:v20210906-994b913
name: ""
resources:
requests:
memory: 29Gi
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
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: true
annotations:
fork-per-release: "true"
Expand Down Expand Up @@ -927,7 +1097,9 @@ presubmits:
automation/test.sh
env:
- name: TARGET
value: kind-1.19-sriov
value: kind-1.22-sriov
- name: KIND_NODE_IMAGE
value: quay.io/kubevirtci/kindest_node:v1.19.11@sha256:cbecc517bfad65e368cd7975d1e8a4f558d91160c051d0b1d10ff81488f5fb06
- name: GIMME_GO_VERSION
value: 1.13.8
image: quay.io/kubevirtci/bootstrap:v20210906-994b913
Expand Down

0 comments on commit 2612f7b

Please sign in to comment.