From c48d901dd484bb9d1470dabf8814aea6c92ca3be Mon Sep 17 00:00:00 2001 From: Matthew Yeazel Date: Fri, 17 Nov 2023 16:43:00 +0000 Subject: [PATCH] docs: Update VERSION in metal readme The version has fallen out of date as time moves on and users often get confused on what version they should choose. This changes the logic to lookup the latest release and use that instead of a hardcoded version. Signed-off-by: Matthew Yeazel --- PROVISIONING-METAL.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PROVISIONING-METAL.md b/PROVISIONING-METAL.md index 64a8f8fbda8..da828870a7d 100644 --- a/PROVISIONING-METAL.md +++ b/PROVISIONING-METAL.md @@ -34,11 +34,13 @@ sha512sum -c <<<"a3c58bc73999264f6f28f3ed9bfcb325a5be943a782852c7d53e803881968e0 Next, set your desired version and variant, and use `tuftool` to download the image: To install `tuftool` you'll need to install Rust (via [rustup](https://rustup.rs/) or the official site), and then you can run `cargo install tuftool`. +The VERSION corresponds to the [Bottlerocket version](https://github.com/bottlerocket-os/bottlerocket/releases/latest), the latest release is almost always what you want. +You might need to install `jq` to fetch the VERSION. ```shell ARCH="x86_64" -VERSION="v1.12.0" -VARIANT="metal-k8s-1.23" +VERSION=$(curl -s https://github.com/gitapi/repos/bottlerocket-os/bottlerocket/releases/latest | jq -r '.name') +VARIANT="metal-k8s-1.28" IMAGE="bottlerocket-${VARIANT}-${ARCH}-${VERSION}.img.lz4" OUTDIR="${VARIANT}-${VERSION}"