Skip to content
New issue

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

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

Already on GitHub? # to your account

kubeone: add formula with initial version 1.8.0 #14

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
30 changes: 30 additions & 0 deletions Formula/kubeone.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
class Kubeone < Formula
desc "Automates Kubernetes cluster operations on any cloud or edge infrastructure"
homepage "https://docs.kubermatic.com/kubeone/v1.8"
url "https://github.com/kubermatic/kubeone/archive/refs/tags/v1.8.0.tar.gz"
sha256 "d4279f0f49fee6db6e9ce8d88cf19d5411b69ad85f4ff4ac514b31a676a1c311"
license "Apache-2.0"

head "https://github.com/kubermatic/kubeone.git", branch: "main"

depends_on "go" => :build
depends_on "opentofu" => :optional
depends_on "terraform" => :optional

def install
ENV["CGO_ENABLED"] = "0"
ldflags = %W[
-s -w
-X k8c.io/kubeone/pkg/cmd.defaultKubeVersion=v1.29.5
-X k8c.io/kubeone/pkg/cmd.version=v#{version}
-X k8c.io/kubeone/pkg/cmd.date=#{time.iso8601}
]

system "go", "build", *std_go_args(ldflags:), "."
generate_completions_from_executable(bin/"kubeone", "completion", shells: [:bash, :zsh])
end

test do
system "#{bin}/kubeone", "--help"
end
end
Loading