Skip to content
Open
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
Expand Up @@ -29,6 +29,8 @@ promotion:
namespace: stolostron
- name: "5.1"
namespace: stolostron
- name: "5.2"
namespace: stolostron
releases:
initial:
integration:
Expand Down Expand Up @@ -185,6 +187,12 @@ tests:
env:
DESTINATION_BRANCH: release-5.1
workflow: ocm-ci-fastforward
- as: fast-forward-5-2
postsubmit: true
steps:
env:
DESTINATION_BRANCH: release-5.2
workflow: ocm-ci-fastforward
zz_generated_metadata:
branch: main
org: stolostron
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ base_images:
name: ubi-minimal
namespace: ocp
tag: "9"
stolostron_builder_go1.25-linux:
stolostron_builder_go1.26-linux:
name: builder
namespace: stolostron
tag: go1.25-linux
tag: go1.26-linux
build_root:
image_stream_tag:
name: builder
namespace: stolostron
tag: go1.25-linux
tag: go1.26-linux
images:
items:
- dockerfile_path: operator/Dockerfile
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
base_images:
base:
name: ubi-minimal
namespace: ocp
tag: "9"
stolostron_builder_go1.26-linux:
name: builder
namespace: stolostron
tag: go1.26-linux
build_root:
image_stream_tag:
name: builder
namespace: stolostron
tag: go1.26-linux
images:
items:
- dockerfile_path: operator/Dockerfile
from: base
to: multicluster-global-hub-operator
- dockerfile_path: manager/Dockerfile
from: base
to: multicluster-global-hub-manager
- dockerfile_path: agent/Dockerfile
from: base
to: multicluster-global-hub-agent
promotion:
to:
- disabled: true
name: "5.2"
namespace: stolostron
releases:
initial:
integration:
name: "4.18"
namespace: ocp
latest:
integration:
include_built_images: true
name: "4.18"
namespace: ocp
resources:
'*':
limits:
memory: 6Gi
requests:
cpu: 100m
memory: 1Gi
test_binary_build_commands: "true"
tests:
- as: test-unit
commands: |
export SELF="make"
export HOME="/tmp"
make unit-tests
container:
from: src
skip_if_only_changed: ^operator/bundle|^\.github|^\.tekton|^tools/|^doc/|^samples/|\.md$|\.properties$|\.copyrightignore$|\.dockerignore$|^(?:.*/)?(?:\.gitignore|\.py$|OWNERS|PROJECT|LICENSE|DCO|manager/OWNERS|agent/OWNERS|operator/OWNERS)$
- as: test-integration
commands: |
export SELF="make"
export HOME="/tmp"
make integration-test
container:
from: src
skip_if_only_changed: ^operator/bundle|^\.github|^\.tekton|^tools/|^doc/|^samples/|\.md$|\.properties$|\.copyrightignore$|\.dockerignore$|^(?:.*/)?(?:\.gitignore|\.py$|OWNERS|PROJECT|LICENSE|DCO|manager/OWNERS|agent/OWNERS|operator/OWNERS)$
- as: test-e2e
skip_if_only_changed: ^operator/bundle|^\.github|^\.tekton|^tools/|^doc/|^samples/|\.md$|\.properties$|\.copyrightignore$|\.dockerignore$|^(?:.*/)?(?:\.gitignore|\.py$|OWNERS|PROJECT|LICENSE|DCO|manager/OWNERS|agent/OWNERS|operator/OWNERS)$
steps:
env:
AWS_CREDENTIALS_SECRET: ocm-hub-of-hubs-aws-kind
AWS_INSTANCE_TYPE: m5ad.2xlarge
post:
- ref: ocm-e2e-kind-destroy
pre:
- ref: ocm-ci-rbac
- ref: ocm-e2e-kind-create
test:
- as: test
commands: |
echo "MULTICLUSTER_GLOBAL_HUB_OPERATOR_IMAGE_REF=$MULTICLUSTER_GLOBAL_HUB_OPERATOR_IMAGE_REF"
echo "MULTICLUSTER_GLOBAL_HUB_MANAGER_IMAGE_REF=$MULTICLUSTER_GLOBAL_HUB_MANAGER_IMAGE_REF"
echo "MULTICLUSTER_GLOBAL_HUB_AGENT_IMAGE_REF=$MULTICLUSTER_GLOBAL_HUB_AGENT_IMAGE_REF"
echo "OPENSHIFT_CI=$OPENSHIFT_CI"
export SELF="make"
set -o pipefail
make e2e-prow-tests 2>&1 | tee ${ARTIFACT_DIR}/e2e-prow-tests.log
set +o pipefail
Comment thread
coderabbitai[bot] marked this conversation as resolved.
dependencies:
- env: MULTICLUSTER_GLOBAL_HUB_OPERATOR_IMAGE_REF
name: multicluster-global-hub-operator
- env: MULTICLUSTER_GLOBAL_HUB_MANAGER_IMAGE_REF
name: multicluster-global-hub-manager
- env: MULTICLUSTER_GLOBAL_HUB_AGENT_IMAGE_REF
name: multicluster-global-hub-agent
from: src
resources:
requests:
cpu: 100m
memory: 200Mi
workflow: ocm-e2e-kind
- as: sonarcloud
commands: |
export TMP_BIN="/tmp/bin"
export mcgh_dir=$(mktemp -d -t mcgh-XXXXX)
export HOME="$mcgh_dir"
export XDG_CONFIG_HOME=$HOME/.config
mkdir -p "${XDG_CONFIG_HOME}"
make setup_envtest
export KUBEBUILDER_ASSETS="$(${TMP_BIN}/setup-envtest use --use-env -p path)"
export SELF="make -f /opt/build-harness/Makefile.prow"
export SONAR_GO_TEST_ARGS="-coverpkg=./... ./pkg/... ./operator/... ./agent/... ./manager/... ./test/integration/..."
make -f /opt/build-harness/Makefile.prow sonar/go/prow
container:
from: src
secrets:
- mount_path: /etc/sonarcloud/
name: acm-sonarcloud-token
skip_if_only_changed: ^operator/bundle|^\.github|^\.tekton|^tools/|^doc/|^samples/|\.md$|\.properties$|\.copyrightignore$|\.dockerignore$|^(?:.*/)?(?:\.gitignore|\.py$|OWNERS|PROJECT|LICENSE|DCO|manager/OWNERS|agent/OWNERS|operator/OWNERS)$
- as: sonarcloud-post-submit
commands: |
export TMP_BIN="/tmp/bin"
export mcgh_dir=$(mktemp -d -t mcgh-XXXXX)
export HOME="$mcgh_dir"
export XDG_CONFIG_HOME=$HOME/.config
mkdir -p "${XDG_CONFIG_HOME}"
make setup_envtest
export KUBEBUILDER_ASSETS="$(${TMP_BIN}/setup-envtest use --use-env -p path)"
export SELF="make -f /opt/build-harness/Makefile.prow"
export SONAR_GO_TEST_ARGS="-coverpkg=./... ./pkg/... ./operator/... ./agent/... ./manager/... ./test/integration/..."
make -f /opt/build-harness/Makefile.prow sonar/go/prow
container:
from: src
postsubmit: true
secrets:
- mount_path: /etc/sonarcloud/
name: acm-sonarcloud-token
skip_if_only_changed: ^operator/bundle|^\.github|^\.tekton|^tools/|^doc/|^samples/|\.md$|\.properties$|\.copyrightignore$|\.dockerignore$|^(?:.*/)?(?:\.gitignore|\.py$|OWNERS|PROJECT|LICENSE|DCO|manager/OWNERS|agent/OWNERS|operator/OWNERS)$
- as: publish-multicluster-global-hub-operator
postsubmit: true
steps:
dependencies:
SOURCE_IMAGE_REF: multicluster-global-hub-operator
env:
IMAGE_REPO: multicluster-global-hub-operator
REGISTRY_ORG: stolostron
test:
- as: publish
commands: |-
export SELF="make"
export OSCI_COMPONENT_NAME="multicluster-global-hub-operator"
export OSCI_PUBLISH_DELAY="0"
make osci/publish
credentials:
- mount_path: /etc/github
name: acm-cicd-github
namespace: test-credentials
from: src
resources:
requests:
cpu: 100m
memory: 200Mi
workflow: ocm-ci-image-mirror
- as: release-52-operator-image-mirror
postsubmit: true
steps:
dependencies:
SOURCE_IMAGE_REF: multicluster-global-hub-operator
env:
IMAGE_REPO: multicluster-global-hub-operator
IMAGE_TAG: v5.2
REGISTRY_ORG: stolostron
workflow: ocm-ci-image-mirror
- as: release-52-manager-image-mirror
postsubmit: true
steps:
dependencies:
SOURCE_IMAGE_REF: multicluster-global-hub-manager
env:
IMAGE_REPO: multicluster-global-hub-manager
IMAGE_TAG: v5.2
REGISTRY_ORG: stolostron
workflow: ocm-ci-image-mirror
- as: release-52-agent-image-mirror
postsubmit: true
steps:
dependencies:
SOURCE_IMAGE_REF: multicluster-global-hub-agent
env:
IMAGE_REPO: multicluster-global-hub-agent
IMAGE_TAG: v5.2
REGISTRY_ORG: stolostron
workflow: ocm-ci-image-mirror
Comment thread
coderabbitai[bot] marked this conversation as resolved.
zz_generated_metadata:
branch: release-5.2
org: stolostron
repo: multicluster-global-hub
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,85 @@ postsubmits:
- name: result-aggregator
secret:
secretName: result-aggregator
- agent: kubernetes
always_run: true
branches:
- ^main$
cluster: build10
decorate: true
decoration_config:
sparse_checkout_files:
- agent/Dockerfile
- manager/Dockerfile
- operator/Dockerfile
labels:
ci.openshift.io/generator: prowgen
max_concurrency: 1
name: branch-ci-stolostron-multicluster-global-hub-main-fast-forward-5-2
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --lease-server-credentials-file=/etc/boskos/credentials
- --report-credentials-file=/etc/report/credentials
- --secret-dir=/secrets/ci-pull-credentials
- --target=fast-forward-5-2
command:
- ci-operator
env:
- name: HTTP_SERVER_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
imagePullPolicy: Always
name: ""
ports:
- containerPort: 8080
name: http
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/boskos
name: boskos
readOnly: true
- mountPath: /secrets/ci-pull-credentials
name: ci-pull-credentials
readOnly: true
- 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: boskos
secret:
items:
- key: credentials
path: credentials
secretName: boskos-credentials
- name: ci-pull-credentials
secret:
secretName: ci-pull-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
- agent: kubernetes
always_run: true
branches:
Expand Down
Loading