From de4ce7cfb5ef7d8c167e853a809710d339bcd11c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Mart=C3=ADnez=20Rinc=C3=B3n?= Date: Sun, 2 Jan 2022 19:12:26 +0100 Subject: [PATCH] krew: Add version 0.4.2 (#1234) (#3144) Update bucket/krew.json Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> Apply suggestions from code review Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> Update bucket/krew.json Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> --- bucket/krew.json | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 bucket/krew.json diff --git a/bucket/krew.json b/bucket/krew.json new file mode 100644 index 0000000000..5fe3bbe969 --- /dev/null +++ b/bucket/krew.json @@ -0,0 +1,40 @@ +{ + "version": "0.4.2", + "description": "Krew is the package manager for kubectl plugins.", + "homepage": "https://krew.sigs.k8s.io/", + "license": "Apache-2.0", + "notes": [ + "This application creates symlinks during installation of plugins.", + "You can install 'gsudo' to run it as administrator, or enable 'Developer Mode' in Windows 10 Settings to bypass the elevation requirement." + ], + "architecture": { + "64bit": { + "url": "https://github.com/kubernetes-sigs/krew/releases/download/v0.4.2/krew.exe", + "hash": "2729c298b5d90b531585939f080a3968c1a672e6223b4313eea8adb5396b4840" + } + }, + "installer": { + "script": [ + "[Environment]::SetEnvironmentVariable('KREW_ROOT', \"$persist_dir\\.krew\", 'Process')", + "Invoke-ExternalCommand -Path \"$dir\\krew.exe\" -Args 'install krew' | Out-Null" + ] + }, + "env_add_path": ".krew\\bin", + "env_set": { + "KREW_ROOT": "$persist_dir\\.krew" + }, + "persist": ".krew", + "checkver": { + "github": "https://github.com/kubernetes-sigs/krew" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://github.com/kubernetes-sigs/krew/releases/download/v$version/krew.exe" + } + }, + "hash": { + "url": "$url.sha256" + } + } +}