Skip to content

Commit

Permalink
kubeone: add v1.8.0
Browse files Browse the repository at this point in the history
Signed-off-by: Marvin Beckers <mail@embik.me>
  • Loading branch information
embik committed May 17, 2024
1 parent 558c5cd commit d149570
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Formula/kubeone.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
class Kubeone < Formula
desc "Automates Kubernetes cluster operations on any cloud or edge infrastructure"
homepage "https://github.com/kubermatic/kubeone"
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 "terraform" => :optional
depends_on "opentofu" => :optional

Check failure on line 12 in Formula/kubeone.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

FormulaAudit/DependencyOrder: dependency "opentofu" (line 12) should be put before dependency "terraform" (line 11)

def install
ENV["CGO_ENABLED"] = "true"
ENV["GOFLAGS"] = "-mod=readonly -trimpath"
ldflags = %W[
-s -w
-extldflags=-zrelro -extldflags=-znow
-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:), "-o", "kubeone", "."
bin.install "kubeone"

generate_completions_from_executable(bin/"kubeone", "completion")
end

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

0 comments on commit d149570

Please sign in to comment.