Commit bfe546b
committed
Fix #2829: CI Failure: pull-e2e-cnao-multus-dynamic-networks-functests / The
fix: upgrade yq from v3.3.4 to v4 to resolve Docker Hub image availability
The mikefarah/yq:3.3.4 Docker image is no longer available on Docker Hub,
causing CI failures in pull-e2e-cnao-multus-dynamic-networks-functests.
This image has been pinned to version 3.3.4 since December 2020 (commit
3bf8f71) and is now unavailable after 5+ years.
This commit upgrades to yq v4 by:
- Using the system-installed yq binary instead of Docker containers
- Migrating command syntax from yq v3 to v4:
- get: 'yq r file path' → 'yq eval ".path" file'
- set: 'yq w -i file path value' → 'yq eval ".path = \"value\"" -i file'
- delete: 'yq d -i file path' → 'yq eval "del(.path)" -i file'
- Updating filter syntax: 'path(name=="value")' → '(.path[] | select(.name == "value"))'
- Adding yaml-utils::unquote_template_variables to preserve Go template syntax
- Replaces the overly aggressive remove_single_quotes_from_yaml
- Only removes quotes around template variables like {{ .Var }}
- Preserves legitimate single quotes in other string values
The v4 API changes are minimal since we only prepend a dot to paths
to convert them to yq v4's jq-style path syntax. This provides
long-term support with an actively maintained yq version.
Fixes #2829
Signed-off-by: RamLavi <ralavi@redhat.com>
Assisted-by: Claude <noreply@anthropic.com>pull-e2e-cnao-multus-dynamic-networks-functests CI1 parent 0b09608 commit bfe546b
5 files changed
Lines changed: 24 additions & 16 deletions
File tree
- data
- linux-bridge
- multus
- hack/components
- test/releases
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
| 76 | + | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
| 150 | + | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 35 | | |
39 | 36 | | |
40 | 37 | | |
41 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
42 | 50 | | |
43 | | - | |
| 51 | + | |
| 52 | + | |
44 | 53 | | |
| 54 | + | |
45 | 55 | | |
46 | 56 | | |
47 | | - | |
48 | | - | |
49 | 57 | | |
50 | 58 | | |
51 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments