kubefirst 1.10.8 (new formula)

kubefirst 1.0.8 (new formula)

Closes #117848.

Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: Patrick Linnane <patrick@linnane.io>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Rui Chen 2022-12-10 20:34:12 -05:00 committed by BrewTestBot
parent 02e713d17d
commit c7492cfeea
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 36 additions and 0 deletions

36
Formula/kubefirst.rb Normal file
View File

@ -0,0 +1,36 @@
class Kubefirst < Formula
desc "GitOps Infrastructure & Application Delivery Platform for kubernetes"
homepage "https://kubefirst.io/"
url "https://github.com/kubefirst/kubefirst/archive/refs/tags/1.10.8.tar.gz"
sha256 "40bb683b0c0e9c32a448d4ff77789baded14addf5b050236afaf9c2548ba967b"
license "MIT"
head "https://github.com/kubefirst/kubefirst.git", branch: "main"
depends_on "go" => :build
def install
ldflags = "-s -w -X github.com/kubefirst/kubefirst/configs.K1Version=#{version}"
system "go", "build", *std_go_args(ldflags: ldflags)
generate_completions_from_executable(bin/"kubefirst", "completion")
end
test do
system bin/"kubefirst", "info"
assert_match "createdby: installer", (testpath/".kubefirst").read
assert_predicate testpath/"logs", :exist?
output = <<~EOS
+------------------+--------------------+
| ADDON NAME | INSTALLED? |
+------------------+--------------------+
| Addons Available | Supported by |
+------------------+--------------------+
| kusk | kubeshop/kubefirst |
+------------------+--------------------+
EOS
assert_match output, shell_output("#{bin}/kubefirst addon list")
assert_match version.to_s, shell_output("#{bin}/kubefirst version")
end
end