Skip to content

Commit

Permalink
WIP add macvtap-cni jobs
Browse files Browse the repository at this point in the history
TODO: Add builds on tags.

Signed-off-by: Petr Horacek <[email protected]>
  • Loading branch information
phoracek committed Jan 18, 2020
1 parent 4e72aad commit 7134aab
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 0 deletions.
6 changes: 6 additions & 0 deletions github/ci/prow/files/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -166,6 +168,10 @@ branch-protection:
branches:
master:
protect: true
macvtap-cni:
branches:
master:
protect: true
common-templates:
branches:
master:
Expand Down
6 changes: 6 additions & 0 deletions github/ci/prow/files/jobs/macvtap-cni/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
filters:
".*":
reviewers:
- phoracek
approvers:
- phoracek
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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"
8 changes: 8 additions & 0 deletions github/ci/prow/files/plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ plugins:
- lgtm
- approve

kubevirt/macvtap-cni:
- size
- hold
- assign
- override
- wip
- dco

kubevirt/machine-remediation-operator:
- trigger
- lgtm
Expand Down

0 comments on commit 7134aab

Please sign in to comment.