10000 fix: update kubectl fetch URL to official dl.k8s.io endpoint (#6939) · operator-framework/operator-sdk@adee160 · GitHub
[go: up one dir, main page]

Skip to content

Commit adee160

Browse files
fix: update kubectl fetch URL to official dl.k8s.io endpoint (#6939)
To allow download upper versions Signed-off-by: Camila Macedo <7708031+camilamacedo86@users.noreply.github.com>
1 parent 25d08c5 commit adee160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/scripts/fetch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fetch() {
2828
;;
2929
"kubectl")
3030
ver_cmd="${DEST}/kubectl version 2>/dev/null | grep Client | cut -d' ' -f5 | sed 's/\w\+:\"v\(.*\)\",/\1/'"
31-
fetch_cmd="(curl -sSfLo '${DEST}/kubectl' 'https://storage.googleapis.com/kubernetes-release/release/v${ver}/bin/${os}/${arch}/kubectl' && chmod +x ${DEST}/kubectl)"
31+
fetch_cmd="(curl -sSfLo '${DEST}/kubectl' 'https://dl.k8s.io/release/v${ver}/bin/${os}/${arch}/kubectl' && chmod +x ${DEST}/kubectl)"
3232
;;
3333
"goreleaser")
3434
ver_cmd="${DEST}/goreleaser --version 2>/dev/null | grep version | cut -d' ' -f3"

0 commit comments

Comments
 (0)
0