Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minikube 1.5.0 (new formula) #45603

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions Formula/minikube.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
class Minikube < Formula
desc "Run a Kubernetes cluster locally"
homepage "https://minikube.sigs.k8s.io/"
url "https://github.com/kubernetes/minikube.git",
:tag => "v1.5.0",
:revision => "d1151d93385a70c5a03775e166e94067791fe2d9"
head "https://github.com/kubernetes/minikube.git"

depends_on "go" => :build
depends_on "go-bindata" => :build
depends_on "kubernetes-cli"

def install
system "make"
bin.install "out/minikube"

output = Utils.popen_read("#{bin}/minikube completion bash")
(bash_completion/"minikube").write output

output = Utils.popen_read("#{bin}/minikube completion zsh")
(zsh_completion/"_minikube").write output
end

test do
output = shell_output("#{bin}/minikube version")
assert_match "version: v#{version}", output

(testpath/".minikube/config/config.json").write <<~EOS
{
"vm-driver": "virtualbox"
}
EOS
output = shell_output("#{bin}/minikube config view")
assert_match "vm-driver: virtualbox", output
end
end