Skip to content

Commit e390cd5

Browse files
committed
NP-1102: Support for Ansible playbook for offline migration
1 parent 8c9558d commit e390cd5

File tree

2 files changed

+182
-0
lines changed

2 files changed

+182
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
base_images:
2+
os:
3+
name: ubi
4+
namespace: ocp
5+
tag: "9"
6+
build_root:
7+
image_stream_tag:
8+
name: release
9+
namespace: openshift
10+
tag: golang-1.13
11+
images:
12+
- dockerfile_path: ci/Dockerfile
13+
from: os
14+
to: molecule-test-runner
15+
releases:
16+
initial:
17+
integration:
18+
name: "4.13"
19+
namespace: ocp
20+
latest:
21+
integration:
22+
include_built_images: true
23+
name: "4.13"
24+
namespace: ocp
25+
resources:
26+
'*':
27+
limits:
28+
memory: 4Gi
29+
requests:
30+
cpu: 100m
31+
memory: 200Mi
32+
tests:
33+
- as: integration
34+
steps:
35+
cluster_profile: aws
36+
test:
37+
- as: test
38+
cli: latest
39+
commands: make test-integration-incluster
40+
dependencies:
41+
- env: MOLECULE_IMAGE
42+
name: molecule-test-runner
43+
from: src
44+
resources:
45+
requests:
46+
cpu: 100m
47+
workflow: ipi-aws
48+
zz_generated_metadata:
49+
branch: main
50+
org: openshift
51+
repo: ansible-ocp-networking-migration-rollback
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
presubmits:
2+
openshift/ansible-ocp-networking-migration-rollback:
3+
- agent: kubernetes
4+
always_run: true
5+
branches:
6+
- ^main$
7+
- ^main-
8+
cluster: build03
9+
context: ci/prow/images
10+
decorate: true
11+
decoration_config:
12+
skip_cloning: true
13+
labels:
14+
ci.openshift.io/generator: prowgen
15+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
16+
name: pull-ci-openshift-ansible-ocp-networking-migration-rollback-main-images
17+
rerun_command: /test images
18+
spec:
19+
containers:
20+
- args:
21+
- --gcs-upload-secret=/secrets/gcs/service-account.json
22+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
23+
- --report-credentials-file=/etc/report/credentials
24+
- --target=[images]
25+
command:
26+
- ci-operator
27+
image: ci-operator:latest
28+
imagePullPolicy: Always
29+
name: ""
30+
resources:
31+
requests:
32+
cpu: 10m
33+
volumeMounts:
34+
- mountPath: /secrets/gcs
35+
name: gcs-credentials
36+
readOnly: true
37+
- mountPath: /secrets/manifest-tool
38+
name: manifest-tool-local-pusher
39+
readOnly: true
40+
- mountPath: /etc/pull-secret
41+
name: pull-secret
42+
readOnly: true
43+
- mountPath: /etc/report
44+
name: result-aggregator
45+
readOnly: true
46+
serviceAccountName: ci-operator
47+
volumes:
48+
- name: manifest-tool-local-pusher
49+
secret:
50+
secretName: manifest-tool-local-pusher
51+
- name: pull-secret
52+
secret:
53+
secretName: registry-pull-credentials
54+
- name: result-aggregator
55+
secret:
56+
secretName: result-aggregator
57+
trigger: (?m)^/test( | .* )images,?($|\s.*)
58+
- agent: kubernetes
59+
always_run: true
60+
branches:
61+
- ^main$
62+
- ^main-
63+
cluster: build05
64+
context: ci/prow/integration
65+
decorate: true
66+
decoration_config:
67+
skip_cloning: true
68+
labels:
69+
ci-operator.openshift.io/cloud: aws
70+
ci-operator.openshift.io/cloud-cluster-profile: aws
71+
ci.openshift.io/generator: prowgen
72+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
73+
name: pull-ci-openshift-ansible-ocp-networking-migration-rollback-main-integration
74+
rerun_command: /test integration
75+
spec:
76+
containers:
77+
- args:
78+
- --gcs-upload-secret=/secrets/gcs/service-account.json
79+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
80+
- --lease-server-credentials-file=/etc/boskos/credentials
81+
- --report-credentials-file=/etc/report/credentials
82+
- --secret-dir=/secrets/ci-pull-credentials
83+
- --target=integration
84+
command:
85+
- ci-operator
86+
image: ci-operator:latest
87+
imagePullPolicy: Always
88+
name: ""
89+
resources:
90+
requests:
91+
cpu: 10m
92+
volumeMounts:
93+
- mountPath: /etc/boskos
94+
name: boskos
95+
readOnly: true
96+
- mountPath: /secrets/ci-pull-credentials
97+
name: ci-pull-credentials
98+
readOnly: true
99+
- mountPath: /secrets/gcs
100+
name: gcs-credentials
101+
readOnly: true
102+
- mountPath: /secrets/manifest-tool
103+
name: manifest-tool-local-pusher
104+
readOnly: true
105+
- mountPath: /etc/pull-secret
106+
name: pull-secret
107+
readOnly: true
108+
- mountPath: /etc/report
109+
name: result-aggregator
110+
readOnly: true
111+
serviceAccountName: ci-operator
112+
volumes:
113+
- name: boskos
114+
secret:
115+
items:
116+
- key: credentials
117+
path: credentials
118+
secretName: boskos-credentials
119+
- name: ci-pull-credentials
120+
secret:
121+
secretName: ci-pull-credentials
122+
- name: manifest-tool-local-pusher
123+
secret:
124+
secretName: manifest-tool-local-pusher
125+
- name: pull-secret
126+
secret:
127+
secretName: registry-pull-credentials
128+
- name: result-aggregator
129+
secret:
130+
secretName: result-aggregator
131+
trigger: (?m)^/test( | .* )integration,?($|\s.*)

0 commit comments

Comments
 (0)