Skip to content

Commit

Permalink
ACM: cut foundation repos to release 2.14 (#61823)
Browse files Browse the repository at this point in the history
Signed-off-by: zhujian <[email protected]>
  • Loading branch information
zhujian7 authored Feb 28, 2025
1 parent 28f94c4 commit 4bae5e3
Show file tree
Hide file tree
Showing 48 changed files with 6,940 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ tests:
postsubmit: true
steps:
env:
DESTINATION_BRANCH: release-2.12
DESTINATION_BRANCH: release-2.13
workflow: ocm-ci-fastforward
zz_generated_metadata:
branch: main
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
base_images:
base:
name: ubi-minimal
namespace: ocp
tag: "8"
cli:
name: "4.13"
namespace: ocp
tag: cli
build_root:
image_stream_tag:
name: release
namespace: openshift
tag: golang-1.21
images:
- dockerfile_path: Dockerfile
from: base
inputs:
cli:
as:
- quay.io/openshift/origin-cli:4.13
to: acm-workload
promotion: {}
resources:
'*':
limits:
memory: 4Gi
requests:
cpu: 100m
memory: 200Mi
tests:
- as: pr-image-mirror
steps:
dependencies:
SOURCE_IMAGE_REF: acm-workload
env:
IMAGE_REPO: acm-workload
REGISTRY_ORG: stolostron
workflow: ocm-ci-image-mirror
- as: pr-merge-image-mirror
postsubmit: true
steps:
dependencies:
SOURCE_IMAGE_REF: acm-workload
env:
IMAGE_REPO: acm-workload
IMAGE_TAG: release-2.13
REGISTRY_ORG: stolostron
workflow: ocm-ci-image-mirror
zz_generated_metadata:
branch: release-2.13
org: stolostron
repo: acm-workload
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ images:
promotion:
to:
- disabled: true
name: "2.13"
name: "2.14"
namespace: stolostron
releases:
initial:
Expand Down Expand Up @@ -67,7 +67,7 @@ tests:
postsubmit: true
steps:
env:
DESTINATION_BRANCH: release-2.13
DESTINATION_BRANCH: release-2.14
workflow: ocm-ci-fastforward
zz_generated_metadata:
branch: main
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
base_images:
base:
name: ubi-minimal
namespace: ocp
tag: "8"
stolostron_builder_go1.19-linux:
name: builder
namespace: stolostron
tag: go1.19-linux
binary_build_commands: make build --warn-undefined-variables
build_root:
image_stream_tag:
name: builder
namespace: stolostron
tag: go1.19-linux
images:
- dockerfile_path: build/Dockerfile
from: base
inputs:
stolostron_builder_go1.19-linux:
as:
- registry.ci.openshift.org/stolostron/builder:go1.19-linux
to: cluster-lifecycle-e2e
promotion:
to:
- name: "2.14"
namespace: stolostron
resources:
'*':
limits:
memory: 4Gi
requests:
cpu: 100m
memory: 200Mi
test_binary_build_commands: make build GO_BUILD_FLAGS:='-race' --warn-undefined-variables
tests:
- as: pr-image-mirror
steps:
dependencies:
SOURCE_IMAGE_REF: cluster-lifecycle-e2e
env:
IMAGE_REPO: cluster-lifecycle-e2e
REGISTRY_ORG: stolostron
workflow: ocm-ci-image-mirror
- as: pr-merge-image-mirror
postsubmit: true
steps:
dependencies:
SOURCE_IMAGE_REF: cluster-lifecycle-e2e
env:
IMAGE_REPO: cluster-lifecycle-e2e
IMAGE_TAG: latest
REGISTRY_ORG: stolostron
workflow: ocm-ci-image-mirror
- as: publish
postsubmit: true
steps:
dependencies:
SOURCE_IMAGE_REF: cluster-lifecycle-e2e
env:
IMAGE_REPO: cluster-lifecycle-e2e
REGISTRY_ORG: stolostron
test:
- as: publish
commands: |-
export OSCI_COMPONENT_NAME=cluster-lifecycle-e2e
export OSCI_COMPONENT_VERSION=2.14
export SELF="make -f /opt/build-harness/Makefile.prow"
export OSCI_PUBLISH_DELAY="0"
make -f /opt/build-harness/Makefile.prow 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
zz_generated_metadata:
branch: release-2.14
org: stolostron
repo: cluster-lifecycle-e2e
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
base_images:
base:
name: ubi-minimal
namespace: ocp
tag: "9"
stolostron_builder_go1.22-linux:
name: builder
namespace: stolostron
tag: go1.22-linux
binary_build_commands: make build --warn-undefined-variables
build_root:
image_stream_tag:
name: builder
namespace: stolostron
tag: go1.22-linux
images:
- dockerfile_path: Dockerfile
from: base
inputs:
stolostron_builder_go1.22-linux:
as:
- registry.ci.openshift.org/stolostron/builder:go1.22-linux
to: cluster-proxy-addon
promotion:
to:
- name: "2.9"
namespace: stolostron
releases:
initial:
integration:
name: "4.10"
namespace: ocp
latest:
integration:
include_built_images: true
name: "4.10"
namespace: ocp
resources:
'*':
limits:
memory: 4Gi
requests:
cpu: 100m
memory: 200Mi
test_binary_build_commands: make build GO_BUILD_FLAGS:='-race' --warn-undefined-variables
tests:
- as: build
commands: |
true
container:
from: bin
skip_if_only_changed: ^\.tekton/|\.rhtap$|^docs/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|PROJECT|LICENSE)$
- as: unit
commands: |
make test --warn-undefined-variables
container:
from: test-bin
skip_if_only_changed: ^\.tekton/|\.rhtap$|^docs/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|PROJECT|LICENSE)$
- as: e2e
skip_if_only_changed: ^\.tekton/|\.rhtap$|^docs/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|PROJECT|LICENSE)$
steps:
dependencies:
COMPONENT_IMAGE_REF: cluster-proxy-addon
env:
CLUSTER_NAMES: none
CLUSTERPOOL_GROUP_NAME: Server Foundation
CLUSTERPOOL_HOST_NAMESPACE: server-foundation
CLUSTERPOOL_HOST_PROW_KUBE_SECRET: ocm-sf-clusterpool
CLUSTERPOOL_LIFETIME: 2h
CLUSTERPOOL_LIST_INCLUSION_FILTER: prow
SKIP_COMPONENT_INSTALL: "true"
test:
- as: test
cli: latest
commands: |
export KUBECONFIG="${SHARED_DIR}/hub-1.kc"
KUBECTL=oc
export KUBECTL
make test-e2e
dependencies:
- env: CLUSTER_PROXY_ADDON_IMAGE
name: cluster-proxy-addon
from: src
resources:
requests:
cpu: 100m
workflow: ocm-e2e-clusterpool
- as: publish
postsubmit: true
steps:
dependencies:
SOURCE_IMAGE_REF: cluster-proxy-addon
env:
IMAGE_REPO: cluster-proxy-addon
REGISTRY_ORG: stolostron
test:
- as: publish
commands: |-
export OSCI_PUBLISH_DELAY="0"
export OSCI_PIPELINE_PRODUCT_PREFIX=backplane
export OSCI_PIPELINE_REPO=backplane-pipeline
export OSCI_COMPONENT_NAME="cluster-proxy-addon"
export OSCI_COMPONENT_VERSION="2.9"
export SELF="make -f Makefile.prow"
make -f Makefile.prow 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: pr-merge-image-mirror
postsubmit: true
steps:
dependencies:
SOURCE_IMAGE_REF: cluster-proxy-addon
env:
IMAGE_REPO: cluster-proxy-addon
IMAGE_TAG: backplane-2.9
REGISTRY_ORG: stolostron
workflow: ocm-ci-image-mirror
zz_generated_metadata:
branch: backplane-2.9
org: stolostron
repo: cluster-proxy-addon
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ images:
promotion:
to:
- disabled: true
name: "2.8"
name: "2.9"
namespace: stolostron
releases:
initial:
Expand Down Expand Up @@ -135,7 +135,7 @@ tests:
postsubmit: true
steps:
env:
DESTINATION_BRANCH: backplane-2.8
DESTINATION_BRANCH: backplane-2.9
workflow: ocm-ci-fastforward
zz_generated_metadata:
branch: main
Expand Down
Loading

0 comments on commit 4bae5e3

Please sign in to comment.