Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding kn-plugin-event sender image to OpenShift CI #24476

Merged
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
@@ -1,9 +1,28 @@
base_images:
base:
name: ubi-minimal
namespace: ocp
tag: "8"
binary_build_commands: |
export HOME=/tmp
./mage build
go build -race -o /usr/bin/kn-event-sender ./cmd/kn-event-sender
build_root:
project_image:
dockerfile_path: openshift/ci-operator/build-image/Dockerfile
images:
- dockerfile_literal: |-
FROM base
ADD kn-event-sender /usr/bin/kn-event-sender
ENTRYPOINT ["/usr/bin/kn-event-sender"]
from: base
inputs:
bin:
paths:
- destination_dir: .
source_path: /usr/bin/kn-event-sender
to: client-plugin-event-sender
promotion:
name: release-0.26
namespace: openshift-knative
releases:
latest:
release:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,28 @@
base_images:
base:
name: ubi-minimal
namespace: ocp
tag: "8"
binary_build_commands: |
export HOME=/tmp
./mage build
go build -race -o /usr/bin/kn-event-sender ./cmd/kn-event-sender
build_root:
project_image:
dockerfile_path: openshift/ci-operator/build-image/Dockerfile
images:
- dockerfile_literal: |-
FROM base
ADD kn-event-sender /usr/bin/kn-event-sender
ENTRYPOINT ["/usr/bin/kn-event-sender"]
from: base
inputs:
bin:
paths:
- destination_dir: .
source_path: /usr/bin/kn-event-sender
to: client-plugin-event-sender
promotion:
name: release-1.0
namespace: openshift-knative
releases:
latest:
release:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,28 @@
base_images:
base:
name: ubi-minimal
namespace: ocp
tag: "8"
binary_build_commands: |
export HOME=/tmp
./mage build
go build -race -o /usr/bin/kn-event-sender ./cmd/kn-event-sender
build_root:
project_image:
dockerfile_path: openshift/ci-operator/build-image/Dockerfile
images:
- dockerfile_literal: |-
FROM base
ADD kn-event-sender /usr/bin/kn-event-sender
ENTRYPOINT ["/usr/bin/kn-event-sender"]
from: base
inputs:
bin:
paths:
- destination_dir: .
source_path: /usr/bin/kn-event-sender
to: client-plugin-event-sender
promotion:
name: release-next
namespace: openshift-knative
releases:
latest:
release:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
postsubmits:
openshift-knative/kn-plugin-event:
- agent: kubernetes
always_run: true
branches:
- ^release-0\.26$
cluster: build02
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/is-promotion: "true"
ci.openshift.io/generator: prowgen
max_concurrency: 1
name: branch-ci-openshift-knative-kn-plugin-event-release-0.26-images
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --image-mirror-push-secret=/etc/push-secret/.dockerconfigjson
- --promote
- --report-credentials-file=/etc/report/credentials
- --target=[images]
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/push-secret
name: push-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: push-secret
secret:
secretName: registry-push-credentials-ci-central
- name: result-aggregator
secret:
secretName: result-aggregator
Original file line number Diff line number Diff line change
@@ -1,5 +1,54 @@
presubmits:
openshift-knative/kn-plugin-event:
- agent: kubernetes
always_run: true
branches:
- ^release-0\.26$
- ^release-0\.26-
cluster: build03
context: ci/prow/images
decorate: true
decoration_config:
skip_cloning: true
labels:
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-openshift-knative-kn-plugin-event-release-0.26-images
rerun_command: /test images
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --report-credentials-file=/etc/report/credentials
- --target=[images]
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )images,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
postsubmits:
openshift-knative/kn-plugin-event:
- agent: kubernetes
always_run: true
branches:
- ^release-1\.0$
cluster: build02
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/is-promotion: "true"
ci.openshift.io/generator: prowgen
max_concurrency: 1
name: branch-ci-openshift-knative-kn-plugin-event-release-1.0-images
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --image-mirror-push-secret=/etc/push-secret/.dockerconfigjson
- --promote
- --report-credentials-file=/etc/report/credentials
- --target=[images]
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/push-secret
name: push-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: push-secret
secret:
secretName: registry-push-credentials-ci-central
- name: result-aggregator
secret:
secretName: result-aggregator
Original file line number Diff line number Diff line change
@@ -1,5 +1,54 @@
presubmits:
openshift-knative/kn-plugin-event:
- agent: kubernetes
always_run: true
branches:
- ^release-1\.0$
- ^release-1\.0-
cluster: build03
context: ci/prow/images
decorate: true
decoration_config:
skip_cloning: true
labels:
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-openshift-knative-kn-plugin-event-release-1.0-images
rerun_command: /test images
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --report-credentials-file=/etc/report/credentials
- --target=[images]
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )images,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
postsubmits:
openshift-knative/kn-plugin-event:
- agent: kubernetes
always_run: true
branches:
- ^release-next$
cluster: build02
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/is-promotion: "true"
ci.openshift.io/generator: prowgen
max_concurrency: 1
name: branch-ci-openshift-knative-kn-plugin-event-release-next-images
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --image-mirror-push-secret=/etc/push-secret/.dockerconfigjson
- --promote
- --report-credentials-file=/etc/report/credentials
- --target=[images]
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/push-secret
name: push-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: push-secret
secret:
secretName: registry-push-credentials-ci-central
- name: result-aggregator
secret:
secretName: result-aggregator
Loading