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
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
base_images:
base:
cluster: https://api.ci.openshift.org
name: origin-v4.0
namespace: openshift
tag: base
images:
- from: base
to: test-image
tag_specification:
cluster: https://api.ci.openshift.org
name: origin-v4.0
namespace: openshift
tag: ''
# promotion is not present here but the promoting postsubmit exists in the
# input, so that job should be pruned in the output
build_root:
image_stream_tag:
cluster: https://api.ci.openshift.org
namespace: openshift
name: release
tag: golang-1.10
resources:
'*':
limits:
cpu: 500Mi
requests:
cpu: 10Mi
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
base_images:
base:
cluster: https://api.ci.openshift.org
name: origin-v4.0
namespace: openshift
tag: base
images:
- from: base
to: test-image
tag_specification:
cluster: https://api.ci.openshift.org
name: origin-v4.0
namespace: openshift
tag: ''
promotion:
namespace: ocp # will add --target [release:latest] to the promote job
name: other
build_root:
image_stream_tag:
cluster: https://api.ci.openshift.org
namespace: openshift
name: release
tag: golang-1.10
resources:
'*':
limits:
cpu: 500Mi
requests:
cpu: 10Mi
tests:
- as: unit
commands: make test-unit
container:
from: src
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This file should be entirely removed in the output, because it has no corresponding
# ci-operator config file and it only contains generated jobs.
postsubmits:
super/duper:
- agent: kubernetes
branches:
- ^master-removed-promotion$
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
name: branch-ci-super-duper-master-removed-promotion-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: super-duper-master-removed-promotion.yaml
name: ci-operator-misc-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,42 @@
postsubmits:
super/duper:
- agent: kubernetes
branches:
- ^master-removed-promotion$
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
name: branch-ci-super-duper-master-removed-promotion-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: super-duper-master-removed-promotion.yaml
name: ci-operator-misc-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:
super/duper:
- agent: kubernetes
always_run: true
branches:
- master-removed-promotion
context: ci/prow/images
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
name: pull-ci-super-duper-master-removed-promotion-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] # This option should be removed in the output, because promotion stanza is no longer present
command:
- ci-operator
env:
- name: CONFIG_SPEC
valueFrom:
configMapKeyRef:
key: super-duper-master-removed-promotion.yaml
name: ci-operator-misc-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
Expand Up @@ -46,3 +46,44 @@ postsubmits:
labels:
master: ci.openshift.redhat.com
name: branch-ci-super-duper-master-legacy
- agent: kubernetes
branches:
- ^master$
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
ci-operator.openshift.io/variant: variant
name: branch-ci-super-duper-master-variant-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: super-duper-master__variant.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
Expand Up @@ -314,6 +314,95 @@ presubmits:
secret:
secretName: sentry-dsn
trigger: (?m)^/test( | .* )unit,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- master
context: ci/prow/variant-images
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
ci-operator.openshift.io/variant: variant
name: pull-ci-super-duper-master-variant-images
rerun_command: /test variant-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: super-duper-master__variant.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( | .* )variant-images,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- master
context: ci/prow/variant-unit
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
ci-operator.openshift.io/variant: variant
name: pull-ci-super-duper-master-variant-unit
rerun_command: /test variant-unit
spec:
containers:
- args:
- --artifact-dir=$(ARTIFACTS)
- --give-pr-author-access-to-namespace=true
- --sentry-dsn-path=/etc/sentry-dsn/ci-operator
- --target=unit
command:
- ci-operator
env:
- name: CONFIG_SPEC
valueFrom:
configMapKeyRef:
key: super-duper-master__variant.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( | .* )variant-unit,?($|\s.*)
- agent: jenkins
always_run: true
context: ci/openshift-jenkins/oldschool
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
presubmits:
super/duper:
- agent: kubernetes
always_run: true
branches:
- master-removed-promotion
context: ci/prow/images
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
name: pull-ci-super-duper-master-removed-promotion-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: super-duper-master-removed-promotion.yaml
name: ci-operator-misc-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.*)