Skip to content

Commit deff5f2

Browse files
committed
Add Prow CI configuration for rh-ecosystem-edge/enclave
Configure Prow CI for the enclave project with: - Tide merge config and plugins (lgtm, approve, jira, etc.) - 9 container validation tests (shellcheck, yamllint, ansible-lint, etc.) - OFCIR-based infrastructure and E2E test steps using SSH-from-Pod pattern - Step-registry entries for setup, teardown, gather, cleanup - Uses packet-assisted cluster profile with assisted_medium_el9 machines
1 parent 67d20fa commit deff5f2

31 files changed

Lines changed: 1814 additions & 0 deletions
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# DO NOT EDIT; this file is auto-generated using https://github.com/openshift/ci-tools.
2+
# Fetched from https://github.com/rh-ecosystem-edge/enclave root OWNERS
3+
# If the repo had OWNERS_ALIASES then the aliases were expanded
4+
# Logins who are not members of 'openshift' organization were filtered out
5+
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md
6+
7+
approvers:
8+
- agonzalezrh
9+
- carbonin
10+
- danielerez
11+
- eliorerz
12+
- eurijon
13+
- javipolo
14+
- maorfr
15+
- mlorenzofr
16+
- pgodowski
17+
- rporres
18+
options: {}
19+
reviewers:
20+
- agonzalezrh
21+
- carbonin
22+
- danielerez
23+
- eliorerz
24+
- eurijon
25+
- javipolo
26+
- maorfr
27+
- mlorenzofr
28+
- pgodowski
29+
- rporres
Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
base_images:
2+
dev-scripts:
3+
name: test
4+
namespace: ocp-kni
5+
tag: dev-scripts
6+
build_root:
7+
project_image:
8+
dockerfile_literal: |
9+
FROM quay.io/edge-infrastructure/enclave-lab-ci:latest
10+
resources:
11+
'*':
12+
limits:
13+
memory: 4Gi
14+
requests:
15+
cpu: 100m
16+
memory: 200Mi
17+
tests:
18+
- as: shellcheck
19+
commands: make -f Makefile.ci validate-shell
20+
container:
21+
from: root
22+
- as: yamllint
23+
commands: make -f Makefile.ci validate-yaml
24+
container:
25+
from: root
26+
- as: json-schema
27+
commands: make -f Makefile.ci validate-json-schema
28+
container:
29+
from: root
30+
- as: ansible-lint
31+
commands: make -f Makefile.ci validate-ansible
32+
container:
33+
from: root
34+
- as: ansible-tags
35+
commands: make -f Makefile.ci validate-tags
36+
container:
37+
from: root
38+
- as: template-rendering
39+
commands: make -f Makefile.ci validate-templates
40+
container:
41+
from: root
42+
- as: makefile-validation
43+
commands: make -f Makefile.ci validate-makefile
44+
container:
45+
from: root
46+
- as: plugin-validation
47+
commands: make -f Makefile.ci validate-plugins
48+
container:
49+
from: root
50+
- as: build-tarball
51+
commands: make -f Makefile.ci build-tarball
52+
container:
53+
from: root
54+
- as: infra-verify
55+
capabilities:
56+
- intranet
57+
run_if_changed: ^(playbooks|operators|configs|Makefile|scripts)/
58+
steps:
59+
allow_best_effort_post_steps: true
60+
cluster_profile: packet-assisted
61+
env:
62+
CLUSTERTYPE: assisted_medium_el9
63+
post:
64+
- ref: rh-ecosystem-edge-enclave-gather
65+
- ref: ofcir-release
66+
pre:
67+
- ref: ofcir-acquire
68+
- ref: rh-ecosystem-edge-enclave-e2e-setup
69+
test:
70+
- as: infra-verify
71+
commands: |
72+
source "${SHARED_DIR}/packet-conf.sh"
73+
ssh "${SSHOPTS[@]}" "root@${IP}" \
74+
"cd /opt/enclave && scripts/ci/prow_infra_verify.sh"
75+
from: dev-scripts
76+
resources:
77+
requests:
78+
cpu: 100m
79+
memory: 200Mi
80+
timeout: 2h0m0s
81+
- as: disconnected-dry-run
82+
capabilities:
83+
- intranet
84+
run_if_changed: ^(playbooks|operators|configs|Makefile|scripts)/
85+
steps:
86+
allow_best_effort_post_steps: true
87+
cluster_profile: packet-assisted
88+
env:
89+
CLUSTERTYPE: assisted_medium_el9
90+
post:
91+
- ref: rh-ecosystem-edge-enclave-gather
92+
- ref: ofcir-release
93+
pre:
94+
- ref: ofcir-acquire
95+
- ref: rh-ecosystem-edge-enclave-e2e-setup
96+
test:
97+
- as: disconnected-dry-run
98+
commands: |
99+
source "${SHARED_DIR}/packet-conf.sh"
100+
ssh "${SSHOPTS[@]}" "root@${IP}" \
101+
"cd /opt/enclave && scripts/ci/prow_disconnected_dry_run.sh"
102+
from: dev-scripts
103+
resources:
104+
requests:
105+
cpu: 100m
106+
memory: 200Mi
107+
timeout: 1h0m0s
108+
- as: e2e-connected
109+
capabilities:
110+
- intranet
111+
run_if_changed: ^(playbooks|operators|configs|Makefile|scripts)/
112+
steps:
113+
allow_best_effort_post_steps: true
114+
cluster_profile: packet-assisted
115+
env:
116+
CLUSTERTYPE: assisted_medium_el9
117+
post:
118+
- ref: rh-ecosystem-edge-enclave-e2e-teardown
119+
- ref: ofcir-release
120+
pre:
121+
- ref: ofcir-acquire
122+
- ref: rh-ecosystem-edge-enclave-e2e-setup
123+
test:
124+
- ref: rh-ecosystem-edge-enclave-e2e-connected
125+
- as: e2e-disconnected
126+
capabilities:
127+
- intranet
128+
run_if_changed: ^(playbooks|operators|configs|Makefile|scripts)/
129+
steps:
130+
allow_best_effort_post_steps: true
131+
cluster_profile: packet-assisted
132+
env:
133+
CLUSTERTYPE: assisted_medium_el9
134+
post:
135+
- ref: rh-ecosystem-edge-enclave-e2e-teardown
136+
- ref: ofcir-release
137+
pre:
138+
- ref: ofcir-acquire
139+
- ref: rh-ecosystem-edge-enclave-e2e-setup
140+
test:
141+
- ref: rh-ecosystem-edge-enclave-e2e-disconnected
142+
zz_generated_metadata:
143+
branch: main
144+
org: rh-ecosystem-edge
145+
repo: enclave
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# DO NOT EDIT; this file is auto-generated using https://github.com/openshift/ci-tools.
2+
# Fetched from https://github.com/rh-ecosystem-edge/enclave root OWNERS
3+
# If the repo had OWNERS_ALIASES then the aliases were expanded
4+
# Logins who are not members of 'openshift' organization were filtered out
5+
# See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md
6+
7+
approvers:
8+
- agonzalezrh
9+
- carbonin
10+
- danielerez
11+
- eliorerz
12+
- eurijon
13+
- javipolo
14+
- maorfr
15+
- mlorenzofr
16+
- pgodowski
17+
- rporres
18+
options: {}
19+
reviewers:
20+
- agonzalezrh
21+
- carbonin
22+
- danielerez
23+
- eliorerz
24+
- eurijon
25+
- javipolo
26+
- maorfr
27+
- mlorenzofr
28+
- pgodowski
29+
- rporres

0 commit comments

Comments
 (0)