mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-25 17:12:50 +00:00
bugfix: fix when init registry with other host then push none image (#2832)
Signed-off-by: xuesongzuo@yunify.com <xuesongzuo@yunify.com>
This commit is contained in:
parent
55e8e0046b
commit
9c4c4304ff
|
|
@ -4,7 +4,7 @@
|
|||
when: .image_registry.type | eq "harbor"
|
||||
command: |
|
||||
# Traverse first-level subdirectories in images_dir, skipping 'blobs'
|
||||
for registry_dir in {{ .image_registry.images_dir }}*; do
|
||||
for registry_dir in {{ .binary_dir }}/images/*; do
|
||||
if [ ! -d "$registry_dir" ] || [ "$(basename "$registry_dir")" = "blobs" ]; then
|
||||
continue
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue