Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix verify-k8s-prefix.sh #210

Merged
merged 1 commit into from
Sep 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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