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
complinace operator running on ARM. Once we have stable jobs, we'll make
this a required.
  • Loading branch information
rhmdnd committed Jan 29, 2025
1 parent 6e1e1e9 commit 07c6127
Show file tree
Hide file tree
Showing 2 changed files with 212 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,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 +144,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 @@ -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

0 comments on commit 07c6127

Please sign in to comment.