Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split prowjobs; move them to .prow directory #1290

Merged
merged 1 commit into from
May 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
929 changes: 0 additions & 929 deletions .prow.yaml

This file was deleted.

110 changes: 110 additions & 0 deletions .prow/e2e-features.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# Copyright 2022 The Machine Controller 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.

presubmits:
- name: pull-machine-controller-e2e-invalid-objects-get-rejected
always_run: true
decorate: true
error_on_eviction: true
clone_uri: "ssh://[email protected]/kubermatic/machine-controller.git"
labels:
preset-aws: "true"
preset-azure: "true"
preset-digitalocean: "true"
preset-gce: "true"
preset-e2e-ssh: "true"
preset-hetzner: "true"
preset-openstack: "true"
preset-vsphere: "true"
preset-kubevirt: "true"
preset-alibaba: "true"
preset-goproxy: "true"
spec:
containers:
- image: golang:1.18.1
command:
- "./hack/ci-e2e-test.sh"
args:
- "TestInvalidObjectsGetRejected"
resources:
requests:
memory: 1Gi
cpu: 500m

- name: pull-machine-controller-e2e-custom-ca
always_run: true
decorate: true
error_on_eviction: true
clone_uri: "ssh://[email protected]/kubermatic/machine-controller.git"
labels:
preset-openstack: "true"
preset-hetzner: "true"
preset-e2e-ssh: "true"
preset-rhel: "true"
preset-goproxy: "true"
spec:
containers:
- image: golang:1.18.1
command:
- "./hack/ci-e2e-test.sh"
args:
- "TestCustomCAsAreApplied"
resources:
requests:
memory: 1Gi
cpu: 500m

- name: pull-machine-controller-e2e-ubuntu-upgrade
always_run: true
decorate: true
error_on_eviction: true
clone_uri: "ssh://[email protected]/kubermatic/machine-controller.git"
labels:
preset-openstack: "true"
preset-hetzner: "true"
preset-e2e-ssh: "true"
preset-goproxy: "true"
spec:
containers:
- image: golang:1.18.1
command:
- "./hack/ci-e2e-test.sh"
args:
- "TestUbuntuProvisioningWithUpgradeE2E"
resources:
requests:
memory: 1Gi
cpu: 500m

- name: pull-machine-controller-e2e-deployment-upgrade
always_run: true
decorate: true
error_on_eviction: true
clone_uri: "ssh://[email protected]/kubermatic/machine-controller.git"
labels:
preset-hetzner: "true"
preset-e2e-ssh: "true"
preset-goproxy: "true"
spec:
containers:
- image: golang:1.18.1
command:
- "./hack/ci-e2e-test.sh"
args:
- "TestDeploymentControllerUpgradesMachineE2E"
env:
resources:
requests:
memory: 1Gi
cpu: 500m
63 changes: 63 additions & 0 deletions .prow/postsubmits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Copyright 2022 The Machine Controller 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.

postsubmits:
- name: ci-push-machine-controller-image
always_run: true
decorate: true
clone_uri: "ssh://[email protected]/kubermatic/machine-controller.git"
branches:
- ^master$
# Match on tags
- ^v\d+\.\d+\.\d+.*
labels:
preset-docker-push: "true"
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.18-node-16-kind-0.12-1
command:
- /bin/bash
- -c
- |
set -euo pipefail
start-docker.sh
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
docker login -u $QUAY_IO_USERNAME -p $QUAY_IO_PASSWORD quay.io
make download-gocache docker-image-publish
# docker-in-docker needs privileged mode
securityContext:
privileged: true
resources:
requests:
cpu: 2
memory: 1Gi

- name: ci-push-machine-controller-upload-gocache
always_run: true
decorate: true
clone_uri: "ssh://[email protected]/kubermatic/machine-controller.git"
branches:
- ^master$
labels:
preset-goproxy: "true"
spec:
containers:
- image: quay.io/kubermatic/build:go-1.18-node-16-kind-0.12-1
command:
- "./hack/ci-upload-gocache.sh"
resources:
requests:
cpu: 2
memory: 1Gi
38 changes: 38 additions & 0 deletions .prow/provider-alibaba.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Copyright 2022 The Machine Controller 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.

presubmits:
- name: pull-machine-controller-e2e-alibaba
optional: true
always_run: false
decorate: true
error_on_eviction: true
clone_uri: "ssh://[email protected]/kubermatic/machine-controller.git"
max_concurrency: 1
labels:
preset-alibaba: "true"
preset-hetzner: "true"
preset-e2e-ssh: "true"
preset-goproxy: "true"
spec:
containers:
- image: golang:1.18.1
command:
- "./hack/ci-e2e-test.sh"
args:
- "TestAlibabaProvisioningE2E"
resources:
requests:
memory: 1Gi
cpu: 500m
36 changes: 36 additions & 0 deletions .prow/provider-anexia.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Copyright 2022 The Machine Controller 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.

presubmits:
- name: pull-machine-controller-e2e-anexia
always_run: false
decorate: true
error_on_eviction: true
clone_uri: "ssh://[email protected]/kubermatic/machine-controller.git"
labels:
preset-hetzner: "true"
preset-e2e-ssh: "true"
preset-anexia: "true"
preset-goproxy: "true"
spec:
containers:
- image: golang:1.18.1
command:
- "./hack/ci-e2e-test.sh"
args:
- "TestAnexiaProvisioningE2E"
resources:
requests:
memory: 1Gi
cpu: 500m
Loading