Skip to content

Commit

Permalink
Add optional CI jobs for testing Compliance Operator on ARM64
Browse files Browse the repository at this point in the history
The `ipi-aws` workflow allows us to request ARM64 architecture for the
control plane and worker nodes. Let's use it so we can start building
out CI for the Compliance Operator on ARM64.

This job is optional for now until we smooth out failures in the
compliance operator running on ARM. Once we have stable jobs, we'll make
this a required.
  • Loading branch information
rhmdnd committed Feb 3, 2025
1 parent 8dad8dc commit 07dce99
Show file tree
Hide file tree
Showing 3 changed files with 225 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,22 @@ build_root:
namespace: openshift
tag: rhel-9-release-golang-1.23-openshift-4.19
images:
- dockerfile_path: Dockerfile.ci
- additional_architectures:
- arm64
dockerfile_path: Dockerfile.ci
from: base
inputs:
openshift_release_rhel-9-release-golang-1.23-openshift-4.19:
as:
- registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.23-openshift-4.19
to: compliance-operator
- dockerfile_path: images/testcontent/Dockerfile.ci
- additional_architectures:
- arm64
dockerfile_path: images/testcontent/Dockerfile.ci
to: testcontent
- dockerfile_path: images/openscap/Dockerfile
- additional_architectures:
- arm64
dockerfile_path: images/openscap/Dockerfile
to: testopenscap
promotion:
to:
Expand All @@ -40,6 +46,12 @@ promotion:
name: "4.17"
namespace: ComplianceAsCode
releases:
arm64-latest:
candidate:
architecture: arm64
product: ocp
stream: nightly
version: "4.17"
initial:
integration:
name: "4.17"
Expand Down Expand Up @@ -138,6 +150,62 @@ tests:
requests:
cpu: 100m
workflow: rosa-aws-sts-hcp
- always_run: false
as: e2e-aws-parallel-arm
skip_if_only_changed: ^.*(md|adoc)$|^LICENSE$|^.github/workflows/*
steps:
cluster_profile: quay-aws
dependencies:
OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE: release:arm64-latest
env:
BASE_DOMAIN: quay.devcluster.openshift.com
COMPUTE_ARCH: arm64
CONTROL_ARCH: arm64
OCP_ARCH: arm64
test:
- as: test
cli: latest
commands: make e2e-parallel
dependencies:
- env: IMAGE_FROM_CI
name: compliance-operator
- env: CONTENT_IMAGE_FROM_CI
name: testcontent
- env: OPENSCAP_IMAGE_FROM_CI
name: testopenscap
from: src
resources:
requests:
cpu: 100m
workflow: ipi-aws
- always_run: false
as: e2e-aws-serial-arm
skip_if_only_changed: ^.*(md|adoc)$|^LICENSE$|^.github/workflows/*
steps:
cluster_profile: quay-aws
dependencies:
OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE: release:arm64-latest
env:
BASE_DOMAIN: quay.devcluster.openshift.com
COMPUTE_ARCH: arm64
CONTROL_ARCH: arm64
OCP_ARCH: arm64
test:
- as: test
cli: latest
commands: make e2e-serial
dependencies:
- env: IMAGE_FROM_CI
name: compliance-operator
- env: CONTENT_IMAGE_FROM_CI
name: testcontent
- env: OPENSCAP_IMAGE_FROM_CI
name: testopenscap
from: src
resources:
requests:
cpu: 100m
workflow: ipi-aws
zz_generated_metadata:
branch: master
org: ComplianceAsCode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ postsubmits:
always_run: true
branches:
- ^master$
cluster: build06
cluster: build01
decorate: true
decoration_config:
skip_cloning: true
labels:
capability/arm64: arm64
ci-operator.openshift.io/is-promotion: "true"
ci.openshift.io/generator: prowgen
max_concurrency: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,81 @@ presubmits:
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )e2e-aws-parallel,?($|\s.*)
- agent: kubernetes
always_run: false
branches:
- ^master$
- ^master-
cluster: build10
context: ci/prow/e2e-aws-parallel-arm
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/cloud: aws
ci-operator.openshift.io/cloud-cluster-profile: quay-aws
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-ComplianceAsCode-compliance-operator-master-e2e-aws-parallel-arm
rerun_command: /test e2e-aws-parallel-arm
skip_if_only_changed: ^.*(md|adoc)$|^LICENSE$|^.github/workflows/*
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=e2e-aws-parallel-arm
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
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
trigger: (?m)^/test( | .* )e2e-aws-parallel-arm,?($|\s.*)
- agent: kubernetes
always_run: false
branches:
Expand Down Expand Up @@ -150,6 +225,81 @@ presubmits:
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )e2e-aws-serial,?($|\s.*)
- agent: kubernetes
always_run: false
branches:
- ^master$
- ^master-
cluster: build10
context: ci/prow/e2e-aws-serial-arm
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/cloud: aws
ci-operator.openshift.io/cloud-cluster-profile: quay-aws
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-ComplianceAsCode-compliance-operator-master-e2e-aws-serial-arm
rerun_command: /test e2e-aws-serial-arm
skip_if_only_changed: ^.*(md|adoc)$|^LICENSE$|^.github/workflows/*
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=e2e-aws-serial-arm
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
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
trigger: (?m)^/test( | .* )e2e-aws-serial-arm,?($|\s.*)
- agent: kubernetes
always_run: false
branches:
Expand Down Expand Up @@ -286,12 +436,13 @@ presubmits:
branches:
- ^master$
- ^master-
cluster: build09
cluster: build10
context: ci/prow/images
decorate: true
decoration_config:
skip_cloning: true
labels:
capability/arm64: arm64
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-ComplianceAsCode-compliance-operator-master-images
Expand Down

0 comments on commit 07dce99

Please sign in to comment.