You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix pin-bundle-images.sh for operators with replace directives
When using LOCAL_REGISTRY=1 with operator replace directives pointing to
personal forks (e.g., lmiccini/*), the script was trying to query the local
registry for bundle images that don't exist there, causing curl to return
null and jq to fail with "Cannot iterate over null (null)".
Root cause: Bundle images from personal forks are only published to quay.io
in the user's namespace (e.g., quay.io/lmiccini/glance-operator-bundle) and
are NOT mirrored to the local CI registry. The local registry only contains
standard openstack-k8s-operators bundles.
The fix:
1. Check IMAGEBASE first (takes precedence for custom registry settings)
2. For replaced operators (GITHUB_USER != "openstack-k8s-operators"):
- Always query quay.io with the user's namespace
- Skip local registry entirely
3. For standard operators: use local registry when LOCAL_REGISTRY=1
4. Update curl logic to only query local registry for standard operators
This allows CI builds with depends-on to work correctly when the dependency
uses replace directives for operator APIs.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
0 commit comments