From 7134aab9b297d296e12594b41b11bf78e85c0357 Mon Sep 17 00:00:00 2001 From: Petr Horacek Date: Sat, 18 Jan 2020 22:00:56 +0100 Subject: [PATCH] WIP add macvtap-cni jobs TODO: Add builds on tags. Signed-off-by: Petr Horacek --- github/ci/prow/files/config.yaml | 6 ++ github/ci/prow/files/jobs/macvtap-cni/OWNERS | 6 ++ .../kubernetes-nmstate-postsubmits.yaml | 26 ++++++++ .../kubernetes-nmstate-presubmits.yaml | 63 +++++++++++++++++++ github/ci/prow/files/plugins.yaml | 8 +++ 5 files changed, 109 insertions(+) create mode 100644 github/ci/prow/files/jobs/macvtap-cni/OWNERS create mode 100644 github/ci/prow/files/jobs/macvtap-cni/kubernetes-nmstate-postsubmits.yaml create mode 100644 github/ci/prow/files/jobs/macvtap-cni/kubernetes-nmstate-presubmits.yaml diff --git a/github/ci/prow/files/config.yaml b/github/ci/prow/files/config.yaml index d00fca8dc91..785b92b2dcb 100644 --- a/github/ci/prow/files/config.yaml +++ b/github/ci/prow/files/config.yaml @@ -54,6 +54,7 @@ tide: kubevirt/katacoda-scenarios: squash kubevirt/demo: squash kubevirt/ovs-cni: squash + kubevirt/macvtap-cni: squash kubevirt/cluster-network-addons-operator: squash kubevirt/bridge-marker: squash nmstate/kubernetes-nmstate: squash @@ -88,6 +89,7 @@ tide: - kubevirt/containerized-data-importer - kubevirt/hostpath-provisioner - kubevirt/ovs-cni + - kubevirt/macvtap-cni - kubevirt/cluster-network-addons-operator - kubevirt/bridge-marker - nmstate/kubernetes-nmstate @@ -166,6 +168,10 @@ branch-protection: branches: master: protect: true + macvtap-cni: + branches: + master: + protect: true common-templates: branches: master: diff --git a/github/ci/prow/files/jobs/macvtap-cni/OWNERS b/github/ci/prow/files/jobs/macvtap-cni/OWNERS new file mode 100644 index 00000000000..1ff0709df64 --- /dev/null +++ b/github/ci/prow/files/jobs/macvtap-cni/OWNERS @@ -0,0 +1,6 @@ +filters: + ".*": + reviewers: + - phoracek + approvers: + - phoracek diff --git a/github/ci/prow/files/jobs/macvtap-cni/kubernetes-nmstate-postsubmits.yaml b/github/ci/prow/files/jobs/macvtap-cni/kubernetes-nmstate-postsubmits.yaml new file mode 100644 index 00000000000..c61d0f4a197 --- /dev/null +++ b/github/ci/prow/files/jobs/macvtap-cni/kubernetes-nmstate-postsubmits.yaml @@ -0,0 +1,26 @@ +postsubmits: + kubevirt/macvtap-cni: + - name: publish-macvtap-cni-latest + always_run: true + decorate: true + max_concurrency: 1 + labels: + preset-dind-enabled: "true" + preset-docker-mirror: "true" + preset-kubevirtci-quay-credential: "true" + spec: + nodeSelector: + type: vm + zone: ci + containers: + - image: gcr.io/k8s-testimages/bootstrap:v20190516-c6832d9 + command: + - "/usr/local/bin/runner.sh" + - "/bin/bash" + - "-c" + - "cat $QUAY_PASSWORD | docker login --username $(cat $QUAY_USER) --password-stdin=true quay.io && make docker-build docker-push" + # docker-in-docker needs privileged mode + securityContext: + privileged: true + +# TODO: Build new tagged image when there is a new tag diff --git a/github/ci/prow/files/jobs/macvtap-cni/kubernetes-nmstate-presubmits.yaml b/github/ci/prow/files/jobs/macvtap-cni/kubernetes-nmstate-presubmits.yaml new file mode 100644 index 00000000000..07c80be4765 --- /dev/null +++ b/github/ci/prow/files/jobs/macvtap-cni/kubernetes-nmstate-presubmits.yaml @@ -0,0 +1,63 @@ +presubmits: + kubevirt/macvtap-cni: + - name: pull-macvtap-cni-unit-test + skip_branches: + - release-\d+\.\d+ + annotations: + fork-per-release: "true" + always_run: true + optional: false + decorate: true + decoration_config: + timeout: 3h + grace_period: 5m + max_concurrency: 6 + labels: + preset-dind-enabled: "true" + preset-docker-mirror: "true" + preset-shared-images: "true" + spec: + nodeSelector: + type: vm + zone: ci + containers: + - image: gcr.io/k8s-testimages/bootstrap:v20190516-c6832d9 + securityContext: + privileged: true + command: + - "/usr/local/bin/runner.sh" + - "/bin/sh" + - "-c" + - "automation/check-patch.unit-test.sh" + + - name: pull-macvtap-cni-e2e-k8s + skip_branches: + - release-\d+\.\d+ + annotations: + fork-per-release: "true" + always_run: true + optional: false + decorate: true + decoration_config: + timeout: 3h + grace_period: 5m + max_concurrency: 6 + labels: + preset-dind-enabled: "true" + preset-docker-mirror: "true" + preset-shared-images: "true" + spec: + nodeSelector: + type: bare-metal-external + containers: + - image: gcr.io/k8s-testimages/bootstrap:v20190516-c6832d9 + securityContext: + privileged: true + resources: + requests: + memory: "29Gi" + command: + - "/usr/local/bin/runner.sh" + - "/bin/sh" + - "-c" + - "automation/check-patch.e2e-k8s.sh" diff --git a/github/ci/prow/files/plugins.yaml b/github/ci/prow/files/plugins.yaml index 8396047424f..44b7f93884c 100644 --- a/github/ci/prow/files/plugins.yaml +++ b/github/ci/prow/files/plugins.yaml @@ -58,6 +58,14 @@ plugins: - lgtm - approve + kubevirt/macvtap-cni: + - size + - hold + - assign + - override + - wip + - dco + kubevirt/machine-remediation-operator: - trigger - lgtm