Skip to content
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/cluster-api-provider-aws/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/cluster-api-provider-aws",

"binary_build_commands": "make build",

"images": [
{
"from": "base",
"to": "machine-controller",
"dockerfile_path": "cmd/machine-controller/Dockerfile"
},
{
"from": "base",
"to": "cluster-controller",
"dockerfile_path": "cmd/cluster-controller/Dockerfile"
}
],
"tests": [
{
"as": "unit",
"from": "src",
"commands": "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,27 @@
postsubmits:
openshift/cluster-api-provider-aws:
- name: branch-ci-openshift-cluster-api-provider-aws-images
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-cluster-api-provider
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,29 @@
presubmits:
openshift/cluster-api-provider-aws:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likely want a --target=[images] presubmit as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. Added. 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest separate jobs

- name: pull-ci-origin-cluster-api-provider-aws-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-cluster-api-provider-aws
key: master.json
command:
- ci-operator
args:
- --artifact-dir=$(ARTIFACTS)
- --target=unit
- --target=[images]
2 changes: 2 additions & 0 deletions cluster/ci/config/prow/plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ config_updater:
name: ci-operator-openshift-cluster-ingress-operator
ci-operator/config/openshift/cluster-dns-operator/*.json:
name: ci-operator-openshift-cluster-dns-operator
ci-operator/config/openshift/cluster-api-provider-aws/master.json:
name: ci-operator-openshift-cluster-api-provider-aws

sigmention:
regexp: (?m)@openshift/sig-([\w-]*)
Expand Down