Skip to content

Commit

Permalink
dnm: Start ovn-kubernetes kind
Browse files Browse the repository at this point in the history
Signed-off-by: Enrique Llorente <ellorent@redhat.com>
  • Loading branch information
qinqon committed May 7, 2024
1 parent 2880f1d commit 5fd4ee5
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,70 @@ presubmits:
path: /var/log/audit
type: Directory
name: audit
- always_run: false
run_before_merge: true
annotations:
fork-per-release: "true"
testgrid-dashboards: kubevirt-presubmits
cluster: kubevirt-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"
max_concurrency: 10
name: pull-kubevirt-e2e-kind-ovn-k
skip_branches:
- release-\d+\.\d+
spec:
containers:
- command:
- /usr/local/bin/runner.sh
- /bin/bash
- -c
- |
dnf install -y which bison openssl
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
source /root/.gvm/scripts/gvm
gvm install go1.20 --binary
gvm use go1.20 --default
git clone https://github.com/ovn-org/ovn-kubernetes
cd ovn-kubernetes
./test/scripts/install-kind.sh
./contrib/kind.sh --enable-interconnect --num-workers 1
image: quay.io/kubevirtci/bootstrap-legacy:v20220810-a8f2e6c
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
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
run_before_merge: true
annotations:
Expand Down
26 changes: 26 additions & 0 deletions hack/pj-on-kind.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash
# Copyright 2019 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Runs sigs.k8s.io/prow/pkg/pj-on-kind.sh with config arguments specific to the prow.k8s.io instance.

set -o errexit
set -o nounset
set -o pipefail

root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
export CONFIG_PATH="${root}/github/ci/prow-deploy/files/config.yaml"
export JOB_CONFIG_PATH="${root}/github/ci/prow-deploy/files/jobs"

bash <(curl -s https://raw.githubusercontent.com/kubernetes-sigs/prow/main/pkg/pj-on-kind.sh) "$@"

0 comments on commit 5fd4ee5

Please sign in to comment.