kubent 0.7.0 (new formula)

* kubent 0.7.0 (new formula)
* Update Formula/kubent.rb
* kubent: add version test

Closes #119741.

Co-authored-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Thomas Deutsch 2023-01-04 10:25:23 +01:00 committed by BrewTestBot
parent 2db7d188f0
commit e54c52bb06
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 25 additions and 0 deletions

25
Formula/kubent.rb Normal file
View File

@ -0,0 +1,25 @@
class Kubent < Formula
desc "Easily check your clusters for use of deprecated APIs"
homepage "https://github.com/doitintl/kube-no-trouble"
url "https://github.com/doitintl/kube-no-trouble.git",
tag: "0.7.0",
revision: "d1bb4e5fd6550b533b2013671aa8419d923ee042"
license "MIT"
head "https://github.com/doitintl/kube-no-trouble.git", branch: "master"
depends_on "go" => :build
def install
ldflags = %W[
-s -w
-X main.version=#{version}
-X main.gitSha=#{Utils.git_head}
]
system "go", "build", *std_go_args(ldflags: ldflags), "./cmd/kubent"
end
test do
assert_match "no configuration has been provided", shell_output("#{bin}/kubent 2>&1")
assert_match version.to_s, shell_output("#{bin}/kubent --version 2>&1")
end
end