From 5414dfcdb2e86053f1beea6b782c769b441e77a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Lindh=C3=A9?= Date: Mon, 7 Aug 2023 12:41:19 +0200 Subject: [PATCH] Introduce KUBESEAL_VERSION for Linux installation (#1275) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Introduce KUBESEAL_VERSION for Linux installation This change introduces a variable `KUBESEAL_VERSION` in the README's example of how to install the `kubeseal` tools on Linux. This makes it quicker and easier to just copy-paste the commands in order to install a certain version. 💡 A good way to inspect this commit is: ```shell git show --color-words='.' ``` Signed-off-by: Andreas Lindhé --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 504d64479d..9ac7a0a90a 100644 --- a/README.md +++ b/README.md @@ -379,8 +379,9 @@ nix-env -iA nixpkgs.kubeseal The `kubeseal` client can be installed on Linux, using the below commands: ```bash -wget https://github.com/bitnami-labs/sealed-secrets/releases/download//kubeseal--linux-amd64.tar.gz -tar -xvzf kubeseal--linux-amd64.tar.gz kubeseal +KUBESEAL_VERSION='' # Set this to, for example, KUBESEAL_VERSION='0.23.0' +wget "https://github.com/bitnami-labs/sealed-secrets/releases/download/v${KUBESEAL_VERSION:?}/kubeseal-${KUBESEAL_VERSION:?}-linux-amd64.tar.gz" +tar -xvzf kubeseal-${KUBESEAL_VERSION:?}-linux-amd64.tar.gz kubeseal sudo install -m 755 kubeseal /usr/local/bin/kubeseal ```