mirror of
https://github.com/DaoCloud/public-image-mirror.git
synced 2025-08-11 22:34:00 +08:00
.github
hack
badge.sh
correct-image.sh
diff-image.sh
diff.sh
fmt-image.sh
fmt.sh
helper.sh
image-filter.sh
merge-mirror.sh
stats-not-sync.sh
verify-allows.sh
verify-docker-prefix.sh
verify-fmt-image.sh
verify-fmt.sh
verify-image.sh
verify-k8s-prefix.sh
LICENSE
README.md
allows.txt
domain.txt
exclude.txt
mirror.txt
16 lines
384 B
Bash
Executable File
16 lines
384 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
file=$1
|
|
|
|
result="$(cat ${file} | grep k8s.gcr.io/)"
|
|
|
|
if [[ "${result}" != "" ]]; then
|
|
echo "Usually registry.k8s.io/* instead of k8s.gcr.io/*"
|
|
echo "Please run following command to fix the issue:"
|
|
echo "cat ${file} | sed 's#k8s.gcr.io/#registry.k8s.io/#' >${file}.bak"
|
|
echo "mv ${file}.bak ${file}"
|
|
echo "./hack/fmt.sh ${file}"
|
|
|
|
exit 1
|
|
fi
|