Skip to content

Commit

Permalink
[WIP] ZTP Left shifting for the Telco QE KPI testing
Browse files Browse the repository at this point in the history
This commit is a PoC by now.

NOTE: wait job must be restored!!!!

Signed-off-by: Carlos Cardenosa <[email protected]>
  • Loading branch information
ccardenosa committed Jan 7, 2025
1 parent 51e766d commit 402ed99
Show file tree
Hide file tree
Showing 14 changed files with 673 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
base_images:
base:
name: "4.17"
namespace: ocp
tag: ansible
cli:
name: "4.17"
namespace: ocp
tag: cli
build_root:
project_image:
dockerfile_literal: |-
FROM quay.io/centos/centos:stream9
RUN \
dnf install -y git python3-pip && \
dnf clean all && \
curl -sSL -o openshift-client-linux.tar.gz https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/4.11.9/openshift-client-linux.tar.gz && \
tar -zxvf openshift-client-linux.tar.gz -C /usr/local/bin oc kubectl && \
rm -f openshift-client-linux.tar.gz && \
pip3 install --no-cache-dir \
"ansible==8.7.0" \
"netaddr==1.3.0" \
&& \
echo
releases:
latest:
release:
architecture: amd64
channel: candidate
version: "4.17"
resources:
'*':
limits:
memory: 4Gi
requests:
cpu: 100m
memory: 200Mi
tests:
- as: telcov10n-sno-virtualised-hub-ztp-f360
cluster: build05
cron: '* 1 * * *'
steps:
env:
AUX_HOST: helix92.telcoqe.eng.rdu2.dc.redhat.com
MCH_NAMESPACE: open-cluster-management
OCP_HUB_VERSION: "4.17"
OPERATORS: |
# - local-storage-operator
- lvms-operator
- openshift-gitops-operator
- advanced-cluster-management
- topology-aware-lifecycle-manager
# - multicluster-engine
SHARED_HUB_CLUSTER_PROFILE: ztp-hub-preserved-prod-cluster_profile_dir
test:
- ref: install-operators-verify
- ref: telcov10n-sno-hub-ztp-verify-hub
workflow: telcov10n-sno-virtualised-hub-ztp
zz_generated_metadata:
branch: ztp-left-shifting-kpi
org: openshift-kni
repo: eco-ci-cd
variant: sno-virtualised-hub-ztp-4.17-latest
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
periodics:
- agent: kubernetes
cluster: build05
cron: '* 1 * * *'
decorate: true
decoration_config:
skip_cloning: true
extra_refs:
- base_ref: ztp-left-shifting-kpi
org: openshift-kni
repo: eco-ci-cd
labels:
ci-operator.openshift.io/cluster: build05
ci-operator.openshift.io/variant: sno-virtualised-hub-ztp-4.17-latest
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: periodic-ci-openshift-kni-eco-ci-cd-ztp-left-shifting-kpi-sno-virtualised-hub-ztp-4.17-latest-telcov10n-sno-virtualised-hub-ztp-f360
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
- --secret-dir=/secrets/ci-pull-credentials
- --target=telcov10n-sno-virtualised-hub-ztp-f360
- --variant=sno-virtualised-hub-ztp-4.17-latest
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- 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: 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
Loading

0 comments on commit 402ed99

Please sign in to comment.