Skip to content
Open
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
13 changes: 13 additions & 0 deletions ci-operator/config/rh-ecosystem-edge/ibm-ci/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# DO NOT EDIT; this file is auto-generated using https://github.com/openshift/ci-tools.
# Fetched from https://github.com/rh-ecosystem-edge/ibm-ci root OWNERS
# If the repo had OWNERS_ALIASES then the aliases were expanded
# Logins who are not members of 'openshift' organization were filtered out
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md

approvers:
- aopincar
- onaim500
options: {}
reviewers:
- aopincar
- onaim500
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
build_root:
image_stream_tag:
name: release
namespace: openshift
tag: rhel-8-release-golang-1.22-openshift-4.17
images:
items:
- dockerfile_path: Containerfile
to: ibm-ci
resources:
'*':
limits:
memory: 4Gi
requests:
cpu: 100m
memory: 200Mi
tests:
- always_run: false
as: deploy-spyre-operator
capabilities:
- intranet
restrict_network_access: false
steps:
test:
- ref: ibm-ci-deploy
zz_generated_metadata:
branch: main
org: rh-ecosystem-edge
repo: ibm-ci
13 changes: 13 additions & 0 deletions ci-operator/jobs/rh-ecosystem-edge/ibm-ci/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# DO NOT EDIT; this file is auto-generated using https://github.com/openshift/ci-tools.
# Fetched from https://github.com/rh-ecosystem-edge/ibm-ci root OWNERS
# If the repo had OWNERS_ALIASES then the aliases were expanded
# Logins who are not members of 'openshift' organization were filtered out
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md

approvers:
- aopincar
- onaim500
options: {}
reviewers:
- aopincar
- onaim500
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
presubmits:
rh-ecosystem-edge/ibm-ci:
- agent: kubernetes
always_run: false
branches:
- ^main$
- ^main-
cluster: build10
context: ci/prow/deploy-spyre-operator
decorate: true
decoration_config:
sparse_checkout_files:
- Containerfile
labels:
capability/intranet: intranet
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-rh-ecosystem-edge-ibm-ci-main-deploy-spyre-operator
rerun_command: /test deploy-spyre-operator
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
- --target=deploy-spyre-operator
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/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: 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( | .* )(deploy-spyre-operator|remaining-required),?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- ^main$
- ^main-
cluster: build01
context: ci/prow/images
decorate: true
decoration_config:
sparse_checkout_files:
- Containerfile
labels:
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-rh-ecosystem-edge-ibm-ci-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.*)
13 changes: 13 additions & 0 deletions ci-operator/step-registry/ibm-ci/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# DO NOT EDIT; this file is auto-generated using https://github.com/openshift/ci-tools.
# Fetched from https://github.com/rh-ecosystem-edge/ibm-ci root OWNERS
# If the repo had OWNERS_ALIASES then the aliases were expanded
# Logins who are not members of 'openshift' organization were filtered out
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md

approvers:
- aopincar
- onaim500
options: {}
reviewers:
- aopincar
- onaim500
13 changes: 13 additions & 0 deletions ci-operator/step-registry/ibm-ci/deploy/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# DO NOT EDIT; this file is auto-generated using https://github.com/openshift/ci-tools.
# Fetched from https://github.com/rh-ecosystem-edge/ibm-ci root OWNERS
# If the repo had OWNERS_ALIASES then the aliases were expanded
# Logins who are not members of 'openshift' organization were filtered out
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md

approvers:
- aopincar
- onaim500
options: {}
reviewers:
- aopincar
- onaim500
30 changes: 30 additions & 0 deletions ci-operator/step-registry/ibm-ci/deploy/ibm-ci-deploy-commands.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash
set -euo pipefail

# Setup SSH from Vault secret (base64-encoded private key)
cat /var/run/ibm-ci/private-key | base64 -d > /tmp/id_rsa
echo "" >> /tmp/id_rsa
chmod 600 /tmp/id_rsa

# Setup pull secret from Vault
cp /var/run/ibm-ci/pull-secret /tmp/pull-secret.json

# Configure pull secret path in Ansible group vars
echo 'ocp_pull_secret_file: "/tmp/pull-secret.json"' >> ansible/group_vars/all.yml

# Generate Ansible inventory with SSH options for CI environment
mkdir -p ansible/inventory
cat > ansible/inventory/hosts.yml <<EOF
---
all:
children:
ibm_hosts:
hosts:
${IBM_HOST}:
ansible_user: root
ansible_ssh_private_key_file: /tmp/id_rsa
ansible_ssh_common_args: '-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'
EOF

# Run deployment
make -C ansible install
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"path": "ibm-ci/deploy/ibm-ci-deploy-ref.yaml",
"owners": {
"approvers": [
"aopincar",
"onaim500"
],
"reviewers": [
"aopincar",
"onaim500"
]
}
}
28 changes: 28 additions & 0 deletions ci-operator/step-registry/ibm-ci/deploy/ibm-ci-deploy-ref.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
ref:
as: ibm-ci-deploy
commands: ibm-ci-deploy-commands.sh
credentials:
- mount_path: /var/run/ibm-ci
name: ibm-ci
namespace: test-credentials
documentation: |-
Deploy IBM Spyre operator to target hardware via Ansible.

This step:
1. Extracts SSH private key from Vault (base64-encoded)
2. Copies pull secret from Vault
3. Generates Ansible inventory from IBM_HOST env var
4. Runs 'make -C ansible install' to deploy the operator

Required Vault secrets:
- /var/run/ibm-ci/private-key: Base64-encoded SSH private key
- /var/run/ibm-ci/pull-secret: Pull secret JSON for image registry access
env:
- default: nvd-srv-38.nvidia.eng.rdu2.dc.redhat.com
name: IBM_HOST
from: ibm-ci
resources:
requests:
cpu: 100m
memory: 256Mi
timeout: 3h0m0s
13 changes: 13 additions & 0 deletions core-services/prow/02_config/rh-ecosystem-edge/ibm-ci/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# DO NOT EDIT; this file is auto-generated using https://github.com/openshift/ci-tools.
# Fetched from https://github.com/rh-ecosystem-edge/ibm-ci root OWNERS
# If the repo had OWNERS_ALIASES then the aliases were expanded
# Logins who are not members of 'openshift' organization were filtered out
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md

approvers:
- aopincar
- onaim500
options: {}
reviewers:
- aopincar
- onaim500
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
approve:
- repos:
- rh-ecosystem-edge/ibm-ci
require_self_approval: false
external_plugins:
rh-ecosystem-edge/ibm-ci:
- endpoint: http://refresh
events:
- issue_comment
name: refresh
- endpoint: http://cherrypick
events:
- issue_comment
- pull_request
name: cherrypick
- endpoint: http://needs-rebase
events:
- issue_comment
- pull_request
name: needs-rebase
- endpoint: http://backport-verifier
events:
- issue_comment
- pull_request
name: backport-verifier
- endpoint: http://payload-testing-prow-plugin
events:
- issue_comment
name: payload-testing-prow-plugin
- endpoint: http://jira-lifecycle-plugin
events:
- issue_comment
- pull_request
- pull_request_review
name: jira-lifecycle-plugin
- endpoint: http://pipeline-controller
events:
- pull_request
- issue_comment
name: pipeline-controller
- endpoint: http://multi-pr-prow-plugin
events:
- issue_comment
name: multi-pr-prow-plugin
lgtm:
- repos:
- rh-ecosystem-edge/ibm-ci
review_acts_as_lgtm: true
plugins:
rh-ecosystem-edge/ibm-ci:
plugins:
- assign
- blunderbuss
- cat
- dog
- heart
- golint
- goose
- help
- hold
- jira
- label
- lgtm
- lifecycle
- override
- pony
- retitle
- shrug
- sigmention
- skip
- trigger
- verify-owners
- owners-label
- wip
- yuks
- approve
triggers:
- repos:
- rh-ecosystem-edge/ibm-ci
trusted_apps:
- openshift-merge-bot
Loading