From f5daed5f609870f561cdc2bcbafc706139fa8747 Mon Sep 17 00:00:00 2001 From: Tobias Date: Mon, 16 Oct 2023 21:41:17 +0200 Subject: [PATCH] +kubeshark -- API traffic analyzer for Kubernetes --- projects/kubeshark.co/package.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 projects/kubeshark.co/package.yml diff --git a/projects/kubeshark.co/package.yml b/projects/kubeshark.co/package.yml new file mode 100644 index 00000000..f462628a --- /dev/null +++ b/projects/kubeshark.co/package.yml @@ -0,0 +1,31 @@ +# https://kubeshark.co/ + +distributable: + url: git+https://github.com/kubeshark/kubeshark + ref: "{{version.raw}}" + +versions: + github: kubeshark/kubeshark + +build: + dependencies: + go.dev: ^1.19 + gnu.org/make: "*" + git-scm.org: "*" + script: | + make build + mkdir -p "{{ prefix }}"/bin + mv bin/kubeshark_$PLATFORM "{{ prefix }}"/bin/kubeshark + env: + VER: "{{version}}" + darwin/aarch64: {PLATFORM: darwin_arm64, GOOS: darwin, GOARCH: arm64} + darwin/x86-64: {PLATFORM: darwin_amd64, GOOS: darwin, GOARCH: amd64} + linux/aarch64: {PLATFORM: linux_arm64, GOOS: linux, GOARCH: arm64} + linux/x86-64: {PLATFORM: linux_amd64, GOOS: linux, GOARCH: amd64} + +provides: + - bin/kubeshark + +test: + script: | + test "$(kubeshark version)" = "{{version}}"