mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 18:54:06 +00:00
Use GitHub release for downloading crictl
Pull the artifacts directly from GitHub instead of the `k8s-artifacts-cri-tools` bucket. Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
This commit is contained in:
parent
2bda5dd8c7
commit
9d893aed0c
@ -373,7 +373,7 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Downloading crictl"
|
echo "Downloading crictl"
|
||||||
local -r crictl_path="https://storage.googleapis.com/k8s-artifacts-cri-tools/release/${crictl_version}"
|
local -r crictl_path="https://github.com/kubernetes-sigs/cri-tools/releases/download/${crictl_version}"
|
||||||
download-or-bust "${crictl_hash}" "${crictl_path}/${crictl}"
|
download-or-bust "${crictl_hash}" "${crictl_path}/${crictl}"
|
||||||
tar xf "${crictl}"
|
tar xf "${crictl}"
|
||||||
mv crictl "${KUBE_BIN}/crictl"
|
mv crictl "${KUBE_BIN}/crictl"
|
||||||
|
@ -58,7 +58,7 @@ $GCE_METADATA_SERVER = "169.254.169.254"
|
|||||||
# Add_InitialHnsNetwork().
|
# Add_InitialHnsNetwork().
|
||||||
$MGMT_ADAPTER_NAME = "vEthernet (Ethernet*"
|
$MGMT_ADAPTER_NAME = "vEthernet (Ethernet*"
|
||||||
$CRICTL_VERSION = 'v1.32.0'
|
$CRICTL_VERSION = 'v1.32.0'
|
||||||
$CRICTL_SHA256 = '8763b5b7ef75ed6d1fc02896dead3ddf95627ab1072d7fd702c22223a335ece4'
|
$CRICTL_SHA512 = 'dc8d5a5821dade9cc56d20f67d77464a0d8b6e43b72cc3c8fa34fdd5927a5eaa7cced6a93906f030e99e9f3e71dd82c60829545a99beccabf4c13b21c8aaf918'
|
||||||
|
|
||||||
Import-Module -Force C:\common.psm1
|
Import-Module -Force C:\common.psm1
|
||||||
|
|
||||||
@ -1160,15 +1160,13 @@ function DownloadAndInstall-Crictl {
|
|||||||
if (-not (ShouldWrite-File ${env:NODE_DIR}\crictl.exe)) {
|
if (-not (ShouldWrite-File ${env:NODE_DIR}\crictl.exe)) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
$CRI_TOOLS_GCS_BUCKET = 'k8s-artifacts-cri-tools'
|
$url = ('https://github.com/kubernetes-sigs/cri-tools/releases/download/' +
|
||||||
$url = ('https://storage.googleapis.com/' + $CRI_TOOLS_GCS_BUCKET +
|
$CRICTL_VERSION + '/crictl-' + $CRICTL_VERSION + '-windows-amd64.tar.gz')
|
||||||
'/release/' + $CRICTL_VERSION + '/crictl-' + $CRICTL_VERSION +
|
|
||||||
'-windows-amd64.tar.gz')
|
|
||||||
MustDownload-File `
|
MustDownload-File `
|
||||||
-URLs $url `
|
-URLs $url `
|
||||||
-OutFile ${env:NODE_DIR}\crictl.tar.gz `
|
-OutFile ${env:NODE_DIR}\crictl.tar.gz `
|
||||||
-Hash $CRICTL_SHA256 `
|
-Hash $CRICTL_SHA512 `
|
||||||
-Algorithm SHA256
|
-Algorithm SHA512
|
||||||
tar xzvf ${env:NODE_DIR}\crictl.tar.gz -C ${env:NODE_DIR}
|
tar xzvf ${env:NODE_DIR}\crictl.tar.gz -C ${env:NODE_DIR}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user