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

Machine api operator #1095

Merged
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
54 changes: 54 additions & 0 deletions ci-operator/config/openshift/machine-api-operator/master.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"tag_specification": {
"cluster": "https://api.ci.openshift.org",
"namespace": "openshift",
"name": "origin-v3.11",
"tag": "",
"tag_overrides": {}
},
"base_images": {
"base": {
"cluster": "https://api.ci.openshift.org",
"namespace": "openshift",
"name": "origin-v3.11",
"tag": "base"
}
},
"test_base_image": {
"cluster": "https://api.ci.openshift.org",
"namespace": "openshift",
"name": "release",
"tag": "golang-1.10"
},

"canonical_go_repository": "github.com/openshift/machine-api-operator",

"binary_build_commands": "export DOCKER_CMD='' make build",

"images": [
{
"from": "base",
"to": "machine-api-operator",
"dockerfile_path": "cmd/Dockerfile",
"inputs": {
"bin": {"paths": [{"source_path": "/go/src/github.com/openshift/machine-api-operator", "destination_dir": "."}]},
"root": {"as": ["build"]}
}
}
],

"tests": [
{
"as": "unit",
"from": "src",
"commands": "export DOCKER_CMD='' make test"
}
],

"resources": {
"*": {
"requests": { "cpu": "100m", "memory": "200Mi" },
"limits": { "cpu": "2", "memory": "4Gi" }
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
postsubmits:
openshift/machine-api-operator:
- name: branch-ci-openshift-machine-api-operator
agent: kubernetes
labels:
artifacts: images
branches:
- master
decorate: true
skip_cloning: true
spec:
serviceAccountName: ci-operator
containers:
- name: test
image: ci-operator:latest
env:
- name: CONFIG_SPEC
valueFrom:
configMapKeyRef:
name: ci-operator-openshift-machine-api-operator
key: master.json
command:
- ci-operator
args:
- --artifact-dir=$(ARTIFACTS)
- --target=[images]
- --promote
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
presubmits:
openshift/machine-api-operator:
- name: pull-ci-openshift-machine-api-operator-unit
agent: kubernetes
context: ci/prow/unit
branches:
- master
rerun_command: "/test unit"
always_run: true
trigger: "((?m)^/test( all| unit),?(\\s+|$))"
decorate: true
skip_cloning: true
spec:
serviceAccountName: ci-operator
containers:
- name: test
image: ci-operator:latest
env:
- name: CONFIG_SPEC
valueFrom:
configMapKeyRef:
name: ci-operator-openshift-machine-api-operator
key: master.json
command:
- ci-operator
args:
- --artifact-dir=$(ARTIFACTS)
- --target=unit
- --target=[images]
7 changes: 7 additions & 0 deletions cluster/ci/config/prow/plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ config_updater:
name: prow-job-cluster-launch-src
ci-operator/templates/master-sidecar.yaml:
name: prow-job-master-sidecar
ci-operator/config/openshift/machine-api-operator/master.json:
name: ci-operator-openshift-machine-api-operator

sigmention:
regexp: (?m)@openshift/sig-([\w-]*)
Expand Down Expand Up @@ -368,3 +370,8 @@ plugins:

openshift/origin-metrics:
- trigger

openshift/machine-api-operator:
- golint
- trigger
- approve