From 5fd4ee5def0af12c5a9d274df5924d71bcab43eb Mon Sep 17 00:00:00 2001 From: Enrique Llorente Date: Tue, 7 May 2024 11:36:47 +0200 Subject: [PATCH] dnm: Start ovn-kubernetes kind Signed-off-by: Enrique Llorente --- .../kubevirt/kubevirt-presubmits.yaml | 64 +++++++++++++++++++ hack/pj-on-kind.sh | 26 ++++++++ 2 files changed, 90 insertions(+) create mode 100755 hack/pj-on-kind.sh diff --git a/github/ci/prow-deploy/files/jobs/kubevirt/kubevirt/kubevirt-presubmits.yaml b/github/ci/prow-deploy/files/jobs/kubevirt/kubevirt/kubevirt-presubmits.yaml index 007d24e037..16a1b351ab 100644 --- a/github/ci/prow-deploy/files/jobs/kubevirt/kubevirt/kubevirt-presubmits.yaml +++ b/github/ci/prow-deploy/files/jobs/kubevirt/kubevirt/kubevirt-presubmits.yaml @@ -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: diff --git a/hack/pj-on-kind.sh b/hack/pj-on-kind.sh new file mode 100755 index 0000000000..515c3901b1 --- /dev/null +++ b/hack/pj-on-kind.sh @@ -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) "$@"