Skip to content

ci-op validation: allow not having tests/images when promoting additional images#2217

Merged
openshift-ci[bot] merged 1 commit into
openshift:masterfrom
petr-muller:ease-validation-w-additional-images
Aug 4, 2021
Merged

ci-op validation: allow not having tests/images when promoting additional images#2217
openshift-ci[bot] merged 1 commit into
openshift:masterfrom
petr-muller:ease-validation-w-additional-images

Conversation

@petr-muller
Copy link
Copy Markdown
Member

Hit this case in a rehearsal:

build_root:
  image_stream_tag:
    name: release
    namespace: openshift
    tag: golang-1.15
promotion:
  additional_images:
    cluster-api-actuator-pkg: src
  name: "4.10"
  namespace: ocp
resources:
  '*':
    requests:
      cpu: 100m
      memory: 200Mi
tag_specification:
  name: "4.10"
  namespace: ocp
zz_generated_metadata:
  branch: release-4.10
  org: openshift
  repo: cluster-api-actuator-pkg

In theory we should check if referenced names exist but I think that
goes beyond basic validation.

…onal images

Hit this case in a rehearsal:

```yaml
build_root:
  image_stream_tag:
    name: release
    namespace: openshift
    tag: golang-1.15
promotion:
  additional_images:
    cluster-api-actuator-pkg: src
  name: "4.10"
  namespace: ocp
resources:
  '*':
    requests:
      cpu: 100m
      memory: 200Mi
tag_specification:
  name: "4.10"
  namespace: ocp
zz_generated_metadata:
  branch: release-4.10
  org: openshift
  repo: cluster-api-actuator-pkg
```

In theory we should check if referenced names exist but I think that
goes beyond basic validation.
@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 3, 2021
@bbguimaraes
Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Aug 4, 2021
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Aug 4, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bbguimaraes, petr-muller

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [bbguimaraes,petr-muller]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot merged commit b63c1ba into openshift:master Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants