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
22 changes: 22 additions & 0 deletions ci-operator/config/openshift/ironic-image/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# DO NOT EDIT; this file is auto-generated using tools/populate-owners.
# from https://github.com/openshift/ironic-image/blob/6adb4b75b5f13e4960fffe5b96351793e9de32e6/OWNERS
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md

approvers:
- bfournie
- derekhiggins
- dhellmann
- dtantsur
- elfosardo
- hardys
- juliakreger
- russellb
reviewers:
- bfournie
- derekhiggins
- dhellmann
- dtantsur
- elfosardo
- hardys
- juliakreger
- russellb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
base_images:
base:
name: "4.2"
namespace: ocp
tag: base
build_root:
image_stream_tag:
cluster: https://api.ci.openshift.org
name: release
namespace: openshift
tag: golang-1.12
images:
- dockerfile_path: Dockerfile.ocp
from: base-os
to: ironic-image
promotion:
name: "4.2"
namespace: ocp
raw_steps:
- pipeline_image_cache_step:
commands: |
curl http://base-openstack-4-2.ocp.svc > /etc/yum.repos.d/base-openstack-4-2.repo

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@smarterclayton what's going on here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

we're injecting a new repository since we need rpms from the openstack repo

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

and note it's already used in a couple other images:

$ git grep base-openstack
Makefile:       oc create secret generic base-openstack-4-2-repos \
Makefile:       oc create secret generic base-openstack-4-3-repos \
ci-operator/config/openshift/ironic-inspector-image/openshift-ironic-inspector-image-master.yaml:      curl http://base-openstack-4-2.ocp.svc > /etc/yum.repos.d/base-openstack-4-2.repo
ci-operator/config/openshift/ironic-ipa-downloader/openshift-ironic-ipa-downloader-master.yaml:      curl http://base-openstack-4-2.ocp.svc > /etc/yum.repos.d/base-openstack-4-2.repo
ci-operator/infra/openshift/release-controller/rpms-ocp-4.2.yaml:    name: base-openstack-4-2
ci-operator/infra/openshift/release-controller/rpms-ocp-4.2.yaml:      app: base-openstack-4-2
ci-operator/infra/openshift/release-controller/rpms-ocp-4.2.yaml:    name: base-openstack-4-2
ci-operator/infra/openshift/release-controller/rpms-ocp-4.2.yaml:      app: base-openstack-4-2
ci-operator/infra/openshift/release-controller/rpms-ocp-4.2.yaml:        app: base-openstack-4-2
ci-operator/infra/openshift/release-controller/rpms-ocp-4.2.yaml:          app: base-openstack-4-2
ci-operator/infra/openshift/release-controller/rpms-ocp-4.2.yaml:              secretName: base-openstack-4-2-repos
ci-operator/infra/openshift/release-controller/rpms-ocp-4.3.yaml:    name: base-openstack-4-3
ci-operator/infra/openshift/release-controller/rpms-ocp-4.3.yaml:      app: base-openstack-4-3
ci-operator/infra/openshift/release-controller/rpms-ocp-4.3.yaml:    name: base-openstack-4-3
ci-operator/infra/openshift/release-controller/rpms-ocp-4.3.yaml:      app: base-openstack-4-3
ci-operator/infra/openshift/release-controller/rpms-ocp-4.3.yaml:        app: base-openstack-4-3
ci-operator/infra/openshift/release-controller/rpms-ocp-4.3.yaml:          app: base-openstack-4-3
ci-operator/infra/openshift/release-controller/rpms-ocp-4.3.yaml:              secretName: base-openstack-4-3-repos

from: base
to: base-os
resources:
'*':
limits:
memory: 4Gi
requests:
cpu: 100m
memory: 200Mi
tag_specification:
name: "4.2"
namespace: ocp
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
base_images:
base:
name: "4.2"
namespace: ocp
tag: base
build_root:
image_stream_tag:
cluster: https://api.ci.openshift.org
name: release
namespace: openshift
tag: golang-1.10
images:
- dockerfile_path: Dockerfile.ocp
from: base-os
to: ironic-image
promotion:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think one of these needs disable: true. I'd put it in the release-4.2 config based on another example.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yep, added!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

correct, currently the master branch builds images promoted to release-4.2, so it should be disabled here

disabled: true
name: "4.2"
namespace: ocp
raw_steps:
- pipeline_image_cache_step:
commands: |
curl http://base-openstack-4-2.ocp.svc > /etc/yum.repos.d/base-openstack-4-2.repo
from: base
to: base-os
resources:
'*':
limits:
memory: 4Gi
requests:
cpu: 100m
memory: 200Mi
tag_specification:
name: "4.2"
namespace: ocp
22 changes: 22 additions & 0 deletions ci-operator/jobs/openshift/ironic-image/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# DO NOT EDIT; this file is auto-generated using tools/populate-owners.
# from https://github.com/openshift/ironic-image/blob/6adb4b75b5f13e4960fffe5b96351793e9de32e6/OWNERS
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md

approvers:
- bfournie
- derekhiggins
- dhellmann
- dtantsur
- elfosardo
- hardys
- juliakreger
- russellb
reviewers:
- bfournie
- derekhiggins
- dhellmann
- dtantsur
- elfosardo
- hardys
- juliakreger
- russellb
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
postsubmits:
openshift/ironic-image:
- agent: kubernetes
branches:
- ^master$
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
name: branch-ci-openshift-ironic-image-master-images
spec:
containers:
- args:
- --artifact-dir=$(ARTIFACTS)
- --give-pr-author-access-to-namespace=true
- --promote
- --sentry-dsn-path=/etc/sentry-dsn/ci-operator
- --target=[images]
command:
- ci-operator
env:
- name: CONFIG_SPEC
valueFrom:
configMapKeyRef:
key: openshift-ironic-image-master.yaml
name: ci-operator-master-configs
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/sentry-dsn
name: sentry-dsn
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: sentry-dsn
secret:
secretName: sentry-dsn
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
presubmits:
openshift/ironic-image:
- agent: kubernetes
always_run: true
branches:
- master
context: ci/prow/images
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
name: pull-ci-openshift-ironic-image-master-images
rerun_command: /test images
spec:
containers:
- args:
- --artifact-dir=$(ARTIFACTS)
- --give-pr-author-access-to-namespace=true
- --sentry-dsn-path=/etc/sentry-dsn/ci-operator
- --target=[images]
- --target=[release:latest]
command:
- ci-operator
env:
- name: CONFIG_SPEC
valueFrom:
configMapKeyRef:
key: openshift-ironic-image-master.yaml
name: ci-operator-master-configs
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/sentry-dsn
name: sentry-dsn
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: sentry-dsn
secret:
secretName: sentry-dsn
trigger: (?m)^/test( | .* )images,?($|\s.*)
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
postsubmits:
openshift/ironic-image:
- agent: kubernetes
branches:
- ^release-4\.2$
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
name: branch-ci-openshift-ironic-image-release-4.2-images
spec:
containers:
- args:
- --artifact-dir=$(ARTIFACTS)
- --give-pr-author-access-to-namespace=true
- --promote
- --sentry-dsn-path=/etc/sentry-dsn/ci-operator
- --target=[images]
command:
- ci-operator
env:
- name: CONFIG_SPEC
valueFrom:
configMapKeyRef:
key: openshift-ironic-image-release-4.2.yaml
name: ci-operator-4.2-configs
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/sentry-dsn
name: sentry-dsn
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: sentry-dsn
secret:
secretName: sentry-dsn
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
presubmits:
openshift/ironic-image:
- agent: kubernetes
always_run: true
branches:
- release-4.2
context: ci/prow/images
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
name: pull-ci-openshift-ironic-image-release-4.2-images
rerun_command: /test images
spec:
containers:
- args:
- --artifact-dir=$(ARTIFACTS)
- --give-pr-author-access-to-namespace=true
- --sentry-dsn-path=/etc/sentry-dsn/ci-operator
- --target=[images]
command:
- ci-operator
env:
- name: CONFIG_SPEC
valueFrom:
configMapKeyRef:
key: openshift-ironic-image-release-4.2.yaml
name: ci-operator-4.2-configs
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/sentry-dsn
name: sentry-dsn
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: sentry-dsn
secret:
secretName: sentry-dsn
trigger: (?m)^/test( | .* )images,?($|\s.*)
2 changes: 2 additions & 0 deletions cluster/ci/config/prow/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ tide:
- openshift/image-registry
- openshift/images
- openshift/installer
- openshift/ironic-image
- openshift/ironic-inspector-image
- openshift/ironic-ipa-downloader
- openshift/ironic-rhcos-downloader
Expand Down Expand Up @@ -364,6 +365,7 @@ tide:
- openshift/image-registry
- openshift/images
- openshift/installer
- openshift/ironic-image
- openshift/ironic-inspector-image
- openshift/ironic-ipa-downloader
- openshift/ironic-rhcos-downloader
Expand Down
3 changes: 3 additions & 0 deletions cluster/ci/config/prow/plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ plugins:
openshift/ironic-inspector-image:
- approve

openshift/ironic-image:
- approve

openshift/ironic-ipa-downloader:
- approve

Expand Down