Skip to content

Commit

Permalink
Adds krew, the kubectl plugin manager (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
lnattrass authored Nov 10, 2023
1 parent fbafc72 commit e27de0a
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions krew.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
binaries = ["kubectl-krew"]
env = {
"KREW_ROOT": "${HERMIT_ENV}/.hermit/krew",
"PATH": "${HERMIT_ENV}/.hermit/krew/bin:$PATH",
}

on "unpack" {
rename {
from = "${root}/krew-${os}_${arch}"
to = "${root}/kubectl-krew"
}
}

platform "darwin" "amd64" {
source = "https://github.com/kubernetes-sigs/krew/releases/download/v${version}/krew-${os}_${arch}.tar.gz"
}

platform "darwin" "arm64" {
source = "https://github.com/kubernetes-sigs/krew/releases/download/v${version}/krew-${os}_${arch}.tar.gz"
}

platform "linux" "amd64" {
source = "https://github.com/kubernetes-sigs/krew/releases/download/v${version}/krew-${os}_${arch}.tar.gz"
}

description = "📦 Find and install kubectl plugins"
homepage = "https://krew.sigs.k8s.io"

version "0.4.4" {
auto-version {
github-release = "kubernetes-sigs/krew"
}
}

0 comments on commit e27de0a

Please sign in to comment.