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

STONEBLD-2371 Tests for multi platform controller #51236

Closed
Closed
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,11 @@
# DO NOT EDIT; this file is auto-generated using https://github.com/openshift/ci-tools.
# Fetched from https://github.com/redhat-appstudio/jvm-build-service root OWNERS
# If the repo had OWNERS_ALIASES then the aliases were expanded
# Logins who are not members of 'openshift' organization were filtered out
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md

approvers:
- stuartwdouglas
options: {}
reviewers:
- stuartwdouglas
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
base_images:
e2e-test-runner:
name: redhat-appstudio
namespace: ci
tag: e2e-test-runner
build_root:
image_stream_tag:
name: release
namespace: openshift
tag: golang-1.20
images:
- dockerfile_path: Dockerfile
to: redhat-appstudio-multi-platform-controller-image
- dockerfile_path: Dockerfile.otp
to: redhat-appstudio-multi-platform-controller-otp-server
releases:
latest:
release:
architecture: amd64
channel: fast
version: "4.13"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
version: "4.13"
version: "4.14"

resources:
'*':
limits:
memory: 4Gi
requests:
cpu: 100m
memory: 200Mi
tests:
- as: multi-platform-controller-e2e
cluster_claim:
architecture: amd64
cloud: aws
labels:
region: us-west-2
owner: rhtap
product: ocp
timeout: 1h0m0s
version: "4.13"
Copy link
Member

Choose a reason for hiding this comment

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

we've updated all jobs to use 4.14

Suggested change
version: "4.13"
version: "4.14"

skip_if_only_changed: ^docs/|^\.github/|^(?:.*/)?(?:\.gitignore|OWNERS|PROJECT|LICENSE)$
steps:
dependencies:
OTP_SERVER_IMAGE: redhat-appstudio-multi-platform-controller-otp-server
COMPONENT_IMAGE: redhat-appstudio-multi-platform-controller-image
test:
- ref: redhat-appstudio-e2e
workflow: redhat-appstudio-claim
zz_generated_metadata:
branch: main
org: redhat-appstudio
repo: multi-platform-controller
11 changes: 11 additions & 0 deletions ci-operator/jobs/redhat-appstudio/multi-platform-controller/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# DO NOT EDIT; this file is auto-generated using https://github.com/openshift/ci-tools.
# Fetched from https://github.com/redhat-appstudio/jvm-build-service root OWNERS
# If the repo had OWNERS_ALIASES then the aliases were expanded
# Logins who are not members of 'openshift' organization were filtered out
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md

approvers:
- stuartwdouglas
options: {}
reviewers:
- stuartwdouglas
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
presubmits:
redhat-appstudio/multi-platform-controller:
- agent: kubernetes
always_run: true
branches:
- ^main$
- ^main-
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-redhat-appstudio-multi-platform-controller-main-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: /secrets/manifest-tool
name: manifest-tool-local-pusher
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: manifest-tool-local-pusher
secret:
secretName: manifest-tool-local-pusher
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )images,?($|\s.*)
- agent: kubernetes
always_run: false
branches:
- ^main$
- ^main-
cluster: build03
context: ci/prow/multi-platform-controller-e2e
decorate: true
decoration_config:
skip_cloning: true
labels:
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-redhat-appstudio-multi-platform-controller-main-multi-platform-controller-e2e
rerun_command: /test multi-platform-controller-e2e
skip_if_only_changed: ^docs/|^\.github/|^(?:.*/)?(?:\.gitignore|OWNERS|PROJECT|LICENSE)$
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --hive-kubeconfig=/secrets/hive-hive-credentials/kubeconfig
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --report-credentials-file=/etc/report/credentials
- --secret-dir=/secrets/ci-pull-credentials
- --target=multi-platform-controller-e2e
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /secrets/ci-pull-credentials
name: ci-pull-credentials
readOnly: true
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /secrets/hive-hive-credentials
name: hive-hive-credentials
readOnly: true
- mountPath: /secrets/manifest-tool
name: manifest-tool-local-pusher
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: ci-pull-credentials
secret:
secretName: ci-pull-credentials
- name: hive-hive-credentials
secret:
secretName: hive-hive-credentials
- name: manifest-tool-local-pusher
secret:
secretName: manifest-tool-local-pusher
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )multi-platform-controller-e2e,?($|\s.*)
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ ref:
name: "release:latest"
- env: CI_SPI_OAUTH_IMAGE
name: "release:latest"
- env: OTP_SERVER_IMAGE
name: "release:latest"
env:
- name: SKIP_BOOTSTRAP
default: "false"
Expand All @@ -29,4 +31,3 @@ ref:
resources:
requests:
cpu: 100m

Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ ref:
name: "release:latest"
- env: CI_SPI_OAUTH_IMAGE
name: "release:latest"
- env: OTP_SERVER_IMAGE
name: "release:latest"
from: e2e-test-runner
resources:
requests:
cpu: 100m

Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ ref:
name: "release:latest"
- env: CI_JBS_REQPROCESSOR_IMAGE
name: "release:latest"
- env: OTP_SERVER_IMAGE
name: "release:latest"
from_image:
name: redhat-appstudio
namespace: ci
tag: e2e-test-runner
resources:
requests:
cpu: 100m

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# DO NOT EDIT; this file is auto-generated using https://github.com/openshift/ci-tools.
# Fetched from https://github.com/redhat-appstudio/jvm-build-service root OWNERS
# If the repo had OWNERS_ALIASES then the aliases were expanded
# Logins who are not members of 'openshift' organization were filtered out
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md

approvers:
- stuartwdouglas
options: {}
reviewers:
- stuartwdouglas
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
external_plugins:
redhat-appstudio/multi-platform-controller:
- endpoint: http://refresh
events:
- issue_comment
name: refresh
- endpoint: http://cherrypick
events:
- issue_comment
- pull_request
name: cherrypick
- endpoint: http://needs-rebase
events:
- issue_comment
- pull_request
name: needs-rebase
- endpoint: http://backport-verifier
events:
- issue_comment
- pull_request
name: backport-verifier
- endpoint: http://payload-testing-prow-plugin
events:
- issue_comment
name: payload-testing-prow-plugin
lgtm:
- repos:
- redhat-appstudio/multi-platform-controller
review_acts_as_lgtm: true
plugins:
redhat-appstudio/multi-platform-controller:
plugins:
- assign
- blunderbuss
- cat
- dog
- heart
- golint
- goose
- help
- hold
- jira
- label
- lgtm
- lifecycle
- override
- pony
- retitle
- shrug
- sigmention
- skip
- trigger
- verify-owners
- owners-label
- wip
- yuks
triggers:
- repos:
- redhat-appstudio/multi-platform-controller
trusted_apps:
- dependabot
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
branch-protection:
orgs:
redhat-appstudio:
repos:
multi-platform-controller:
unmanaged: true