Skip to content
Draft
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,18 @@
build_root:
image_stream_tag:
name: builder
namespace: ocp
tag: rhel-9-golang-1.25-openshift-4.21
images:
items:
- dockerfile_literal: FROM src
from: src
to: dummy
resources:
'*':
requests:
cpu: 100m
zz_generated_metadata:
branch: main
org: trusted-execution-clusters
repo: operator
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
base_images:
cli:
name: "4.21"
namespace: ocp
tag: cli
build_root:
image_stream_tag:
name: builder
namespace: ocp
tag: rhel-9-golang-1.25-openshift-4.21
images:
items:
- dockerfile_literal: |
FROM src
COPY oc /usr/bin/oc
RUN dnf install -y jq perl-FindBin perl-core python3-pip && \
dnf clean all
from: src
inputs:
cli:
paths:
- destination_dir: .
source_path: /usr/bin/oc
to: azure-test-image
- dockerfile_path: Containerfile
build_args:
- name: build_type
value: release
to: operator
- dockerfile_path: compute-pcrs/Containerfile
build_args:
- name: build_type
value: release
to: compute-pcrs
- dockerfile_path: register-server/Containerfile
build_args:
- name: build_type
value: release
to: register-server
- dockerfile_path: attestation-key-register/Containerfile
build_args:
- name: build_type
value: release
to: attestation-key-register
releases:
latest:
candidate:
architecture: amd64
product: ocp
stream: nightly
version: "4.21"
resources:
'*':
limits:
memory: 8Gi
Comment thread
Jakob-Naucke marked this conversation as resolved.
requests:
cpu: 100m
memory: 200Mi
tests:
- always_run: false
as: integration-test
optional: true
skip_if_only_changed: ^(\.github|LICENSES|bundle|docs|examples)/|^(README\.md|\.gitignore)$
steps:
cluster_profile: openshift-org-aws
test:
- ref: trusted-execution-clusters-ref-azure-integration-test
workflow: ipi-aws
zz_generated_metadata:
branch: main
org: trusted-execution-clusters
repo: operator
variant: azure
Original file line number Diff line number Diff line change
@@ -0,0 +1,210 @@
presubmits:
trusted-execution-clusters/operator:
- agent: kubernetes
always_run: true
branches:
- ^main$
- ^main-
cluster: build03
context: ci/prow/azure-images
decorate: true
decoration_config:
sparse_checkout_files:
- Containerfile
- attestation-key-register/Containerfile
- compute-pcrs/Containerfile
- register-server/Containerfile
labels:
ci-operator.openshift.io/variant: azure
ci.openshift.io/generator: prowgen
job-release: "4.21"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-trusted-execution-clusters-operator-main-azure-images
rerun_command: /test azure-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]
- --variant=azure
command:
- ci-operator
image: quay-proxy.ci.openshift.org/openshift/ci:ci_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( | .* )azure-images,?($|\s.*)
- agent: kubernetes
always_run: false
branches:
- ^main$
- ^main-
cluster: build03
context: ci/prow/azure-integration-test
decorate: true
decoration_config:
sparse_checkout_files:
- Containerfile
- attestation-key-register/Containerfile
- compute-pcrs/Containerfile
- register-server/Containerfile
labels:
ci-operator.openshift.io/cloud: aws
ci-operator.openshift.io/cloud-cluster-profile: openshift-org-aws
ci-operator.openshift.io/variant: azure
ci.openshift.io/generator: prowgen
job-release: "4.21"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-trusted-execution-clusters-operator-main-azure-integration-test
optional: true
rerun_command: /test azure-integration-test
skip_if_only_changed: ^(\.github|LICENSES|bundle|docs|examples)/|^(README\.md|\.gitignore)$
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=integration-test
- --variant=azure
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
trigger: (?m)^/test( | .* )azure-integration-test,?($|\s.*)
- 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-trusted-execution-clusters-operator-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: quay-proxy.ci.openshift.org/openshift/ci:ci_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.*)
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash

set -euo pipefail

curl https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
export PATH="$HOME/.local/bin:$PATH"
unset GOFLAGS

pip install azure-cli

AZURE_SUBSCRIPTION_ID=$(cat /tmp/secrets/azure/subscription-id)
TEST_IMAGE=$(cat /tmp/secrets/azure/test-image)
TEST_NAMESPACE_PREFIX="ci-${PULL_NUMBER:+${PULL_NUMBER}-}$(uuidgen | cut -d- -f1)-"
export AZURE_SUBSCRIPTION_ID TEST_IMAGE TEST_NAMESPACE_PREFIX

export VIRT_PROVIDER=azure
export PLATFORM=openshift
export TEST_TIMEOUT_MULTIPLIER=3

az login --service-principal \
-u "$(cat /tmp/secrets/azure/client-id)" \
-p "$(cat /tmp/secrets/azure/client-secret)" \
--tenant "$(cat /tmp/secrets/azure/tenant-id)"

eval "$(ssh-agent -s)"

git remote add test https://github.com/Jakob-Naucke/trusted-cluster-operator
git fetch test
git switch openshift-ci-noreque

export REGISTRY=quay.io/jnaucke
export TAG=20260702-kbs20-2bef27f
export OPERATOR_IMAGE=quay.io/jnaucke/trusted-cluster-operator:20260716-9081728
export INTEGRATION_TEST_THREADS=2

echo "[INFO] Install cert-manager"
CRT_MGR_VERSION=$(go list -m -f '{{.Version}}' github.com/cert-manager/cert-manager)
oc apply -f "https://github.com/cert-manager/cert-manager/releases/download/${CRT_MGR_VERSION}/cert-manager.yaml"

echo "[INFO] Running integration tests..."
make integration-tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"path": "trusted-execution-clusters/ref/azure-integration-test/trusted-execution-clusters-ref-azure-integration-test-ref.yaml",
"owners": {
"approvers": [
"alicefr",
"Jakob-Naucke"
],
"reviewers": [
"alicefr",
"Jakob-Naucke"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
ref:
as: trusted-execution-clusters-ref-azure-integration-test
from: azure-test-image
commands: trusted-execution-clusters-ref-azure-integration-test-commands.sh
dependencies:
- name: operator
env: OPERATOR_IMAGE
- name: compute-pcrs
env: RELATED_IMAGE_COMPUTE_PCRS
- name: register-server
env: RELATED_IMAGE_REGISTRATION_SERVER
- name: attestation-key-register
env: RELATED_IMAGE_ATTESTATION_KEY_REGISTER
credentials:
- namespace: test-credentials
name: trusted-execution-clusters-azure
mount_path: /tmp/secrets/azure
resources:
requests:
cpu: 500m
memory: 500Mi
documentation: |-
Runs Azure integration tests for the trusted-execution-clusters operator