kubergrunt 0.6.9 (new formula)

Closes #71313.

Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com>
master
Rui Chen 2021-02-16 23:58:19 -05:00 committed by Sean Molenaar
parent 336a3a62ff
commit ee689c901b
1 changed files with 23 additions and 0 deletions

23
Formula/kubergrunt.rb Normal file
View File

@ -0,0 +1,23 @@
class Kubergrunt < Formula
desc "Collection of commands to fill in the gaps between Terraform, Helm, and Kubectl"
homepage "https://github.com/gruntwork-io/kubergrunt"
url "https://github.com/gruntwork-io/kubergrunt/archive/v0.6.9.tar.gz"
sha256 "f8f027733f22ded83a3e7beee343277cccd6e8bb2c0eeca0666d3e62ac56f4b9"
license "Apache-2.0"
depends_on "go" => :build
def install
system "go", "build", *std_go_args, "-ldflags", "-s -w -X main.VERSION=v#{version}", "./cmd"
end
test do
output = shell_output("#{bin}/kubergrunt eks verify --eks-cluster-arn " \
"arn:aws:eks:us-east-1:123:cluster/brew-test 2>&1", 1)
assert_match "ERROR: Error finding AWS credentials", output
output = shell_output("#{bin}/kubergrunt tls gen --namespace test " \
"--secret-name test --ca-secret-name test 2>&1", 1)
assert_match "ERROR: --tls-common-name is required", output
end
end