Skip to content

Commit

Permalink
fix verify-k8s-prefix.sh (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
wzshiming authored Sep 6, 2022
1 parent 1f7c677 commit 998a667
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
10 changes: 1 addition & 9 deletions hack/verify-k8s-prefix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@

file=$1

cp ${file} ${file}.bak

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)
result="$(cat ${file} | grep k8s.gcr.io/)"

if [[ "${result}" != "" ]]; then
echo "Usually registry.k8s.io/* instead of k8s.gcr.io/*"
Expand All @@ -19,5 +13,3 @@ if [[ "${result}" != "" ]]; then

exit 1
fi

rm ${file}.bak
1 change: 0 additions & 1 deletion mirror.txt
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,6 @@ ghcr.io/spidernet-io/spiderpool/spiderpool-controller-beta
ghcr.io/spidernet-io/spiderpool/spiderpool-controller-ci
ghcr.io/sumologic/tailing-sidecar
ghcr.io/sumologic/tailing-sidecar-operator
k8s.gcr.io/ingress-nginx/kube-webhook-certgen
mcr.microsoft.com/vscode/devcontainers/java
nvcr.io/nvidia/gpu-operator
nvcr.io/nvidia/k8s-device-plugin
Expand Down

0 comments on commit 998a667

Please sign in to comment.