Repository navigation
Commit 088e155
chore(mirror-plugins.sh) Add fallback to quay.io for unreleased plugins in mirror script (#2294)
* fix: Add fallback to quay.io for unreleased plugins in mirror script
When mirroring plugins from catalog index, if a plugin references
registry.access.redhat.com/rhdh but is not yet released there, the
script now falls back to pulling from quay.io/rhdh instead.
This enables testing of mirroring catalog indexes that contain plugins
which have not yet been published to registry.access.redhat.com.
Fixes: RHIDP-11725
* update: Limit fallback to the rhdh namespace
Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
* update: Consider a more robust failure check
Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
* fix(mirror-plugins): robust error handling for skopeo fallback logic
* emit specific warning for unauthorized, could be credentials issue or non-existent repo
Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
* use infof instead of warn
Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
* update: Add fallback to quay.io for unreleased RHDH plugins and catalog indexes. Use skopeo inspect to check image existence instead of parsing error strings.
* fix: USED_FALLBACK is being set inside a subshell (command substitution) so it is not visible in the parent shell
Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
* chore: update to be compatible with 3-level registries
* Patch the registry
* Allow separate internal-registry URL
* refactor(mirror-plugins): eliminate global variables in get_effective_registry_ref
Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
* Update mirror-plugins adoc and fix silent failures
Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
---------
Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
Co-authored-by: Zbyněk Drápela <zbynek.drapela@gmail.com>1 parent f2d1a88 commit 088e155
2 files changed
Lines changed: 253 additions & 69 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
| |||
110 | 116 | | |
111 | 117 | | |
112 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
113 | 134 | | |
114 | 135 | | |
115 | 136 | | |
116 | 137 | | |
| 138 | + | |
| 139 | + | |
117 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
0 commit comments