Skip to content
This repository was archived by the owner on Jun 14, 2019. It is now read-only.

Allow override of the default config via --override - #20

Merged
smarterclayton merged 4 commits into
openshift:masterfrom
smarterclayton:image_overlay
May 28, 2018
Merged

smarterclayton merged 4 commits into
openshift:masterfrom
smarterclayton:image_overlay

Conversation

@smarterclayton

Copy link
Copy Markdown
Contributor

Fixes #17

Allows us to separate out CI job definitions provided with the repo from the inputs we want to use.

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 20, 2018
@openshift-ci-robot openshift-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 28, 2018
@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 28, 2018
Will allow image inputs to overlay each other.
@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 28, 2018
This flag allows a CI admin to override inputs in a config provided by a
team, such as the base images or release tag configuration.
The `cluster` field may be set on input images and the release tag
configuration to anonymously access image streams located on a public
cluster (the image stream, tags, images, and pulls must all be available
anonymously). This allows a repo-specific config file to be checked in
that can be overriden during CI by the job executor.
Users can specify the resource restrictions for their pods and
builds as well as set a default request or limit for all runs.

```
{
  "resources": {
    "*": {
      "requests": {"cpu": "2", "memory": "1Gi"},
      "limits":   {"cpu": "4"}
    },
    "rpms": {
      "requests": {"cpu": "1"},
      "limits":   {"memory": "200m"}
    },
    ...
  }
}
```

All defaults from `*` underfill any step.
@smarterclayton

Copy link
Copy Markdown
Contributor Author

Three separate changes:

  1. --override and OVERRIDE_SPEC can be layered on top of a repo-provided spec - this allows the repo provided spec to be tailored for a CI environment
  2. Allow images to be referenced from a cluster anonymously, so the repo can be used by an unauthenticated user (api.ci.openshift.org has anonymous read access to openshift/origin-X)
  3. Allow resources to be specified as a top level field in the config, with a * default request/limit and a per step (as or the image name) value that is placed on pods and builds.

@smarterclayton
smarterclayton merged commit b37c4f2 into openshift:master May 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants