Commit 1780e62
fix: Add EC build support logic in OCP installer download task (#430)
This PR introduces logic updates in the
roles/download_ocp_installer/tasks/main.yaml file to enable automated
handling of Early Candidate (EC) builds for OpenShift.
The code now dynamically selects the appropriate download URL based on
the installer version pattern.
Changes Introduced:
Added conditional check for EC builds (-ec in version string).
Routes EC build downloads to:
https://mirror.openshift.com/pub/openshift-v4/s390x/clients/ocp-dev-preview/
Maintains existing logic for regular builds from:
https://mirror.openshift.com/pub/openshift-v4/s390x/clients/ocp/
No changes to all.yaml or inventory inputs — logic is handled directly
in code.
Verified backward compatibility with standard build versions.
Testing Done:
✅ Tested with both EC (4.21.0-ec.2) and non-EC (4.20.2) versions.
✅ Verified correct URL resolution in ansible-playbook debug logs.
✅ Confirmed successful download and extraction of installer and client
binaries.
Impact:
Simplifies EC build handling without requiring manual URL updates.
Keeps ABI automation compatible with both GA and EC releases.
No breaking changes for existing playbooks.
Signed-off-by: Neeraj Mishra <[email protected]>
Co-authored-by: Neeraj Mishra <[email protected]>1 parent 3088328 commit 1780e62
1 file changed
+27
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
5 | 11 | | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
9 | 15 | | |
| 16 | + | |
10 | 17 | | |
11 | 18 | | |
12 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
13 | 26 | | |
14 | 27 | | |
15 | 28 | | |
16 | 29 | | |
17 | 30 | | |
| 31 | + | |
18 | 32 | | |
19 | 33 | | |
20 | 34 | | |
21 | 35 | | |
22 | 36 | | |
23 | 37 | | |
24 | 38 | | |
| 39 | + | |
25 | 40 | | |
26 | 41 | | |
27 | 42 | | |
28 | 43 | | |
29 | 44 | | |
30 | 45 | | |
31 | 46 | | |
| 47 | + | |
32 | 48 | | |
33 | 49 | | |
34 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
35 | 56 | | |
36 | 57 | | |
37 | 58 | | |
38 | 59 | | |
| 60 | + | |
39 | 61 | | |
40 | 62 | | |
41 | 63 | | |
42 | 64 | | |
43 | 65 | | |
44 | 66 | | |
| 67 | + | |
45 | 68 | | |
46 | 69 | | |
47 | 70 | | |
48 | 71 | | |
49 | 72 | | |
| 73 | + | |
0 commit comments