Repository navigation
Commit 2d1b5de
Fix pin-bundle-images.sh for operators with replace directives
When using LOCAL_REGISTRY=1 with operator replace directives pointing to
non-standard GitHub users (e.g., personal forks), the script was trying to
query the local registry for bundle images that don't exist there.
This caused curl to return null/empty responses, leading to jq errors:
"Cannot iterate over null (null)" and ultimately bundle-fail-tag being appended.
The fix ensures that:
- Operators with replace directives always query quay.io for bundles from
the replaced user's namespace (e.g., quay.io/lmiccini/glance-operator-bundle)
- Only standard openstack-k8s-operators bundles are queried from the local
registry when LOCAL_REGISTRY=1
- Custom IMAGEBASE operators continue to work as before
Fixes CI failures when depends-on references use operator replace directives.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 1cba828 commit 2d1b5de
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | | - | |
| 50 | + | |
| 51 | + | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| |||
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| 65 | + | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
66 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
67 | 75 | | |
68 | 76 | | |
69 | 77 | | |
| |||
0 commit comments