mirror of
https://github.com/DaoCloud/public-image-mirror.git
synced 2025-09-07 22:07:00 +08:00
fix verify-k8s-prefix.sh (#210)
This commit is contained in:
@@ -2,13 +2,7 @@
|
|||||||
|
|
||||||
file=$1
|
file=$1
|
||||||
|
|
||||||
cp ${file} ${file}.bak
|
result="$(cat ${file} | grep k8s.gcr.io/)"
|
||||||
|
|
||||||
cat ${file} | grep k8s.gcr.io/ | sed 's#k8s.gcr.io/#registry.k8s.io/#' >>${file}.bak
|
|
||||||
|
|
||||||
$(dirname "${BASH_SOURCE}")/fmt.sh ${file}.bak
|
|
||||||
|
|
||||||
result=$(diff ${file} ${file}.bak)
|
|
||||||
|
|
||||||
if [[ "${result}" != "" ]]; then
|
if [[ "${result}" != "" ]]; then
|
||||||
echo "Usually registry.k8s.io/* instead of k8s.gcr.io/*"
|
echo "Usually registry.k8s.io/* instead of k8s.gcr.io/*"
|
||||||
@@ -19,5 +13,3 @@ if [[ "${result}" != "" ]]; then
|
|||||||
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm ${file}.bak
|
|
||||||
|
@@ -395,7 +395,6 @@ ghcr.io/spidernet-io/spiderpool/spiderpool-controller-beta
|
|||||||
ghcr.io/spidernet-io/spiderpool/spiderpool-controller-ci
|
ghcr.io/spidernet-io/spiderpool/spiderpool-controller-ci
|
||||||
ghcr.io/sumologic/tailing-sidecar
|
ghcr.io/sumologic/tailing-sidecar
|
||||||
ghcr.io/sumologic/tailing-sidecar-operator
|
ghcr.io/sumologic/tailing-sidecar-operator
|
||||||
k8s.gcr.io/ingress-nginx/kube-webhook-certgen
|
|
||||||
mcr.microsoft.com/vscode/devcontainers/java
|
mcr.microsoft.com/vscode/devcontainers/java
|
||||||
nvcr.io/nvidia/gpu-operator
|
nvcr.io/nvidia/gpu-operator
|
||||||
nvcr.io/nvidia/k8s-device-plugin
|
nvcr.io/nvidia/k8s-device-plugin
|
||||||
|
Reference in New Issue
Block a user