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 b95aa78
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Formula/kubeone.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
class Kubeone < Formula

Check failure on line 1 in Formula/kubeone.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

Stable: version 1.8.0 is redundant with version scanned from URL
desc "Automates Kubernetes cluster operations on all your cloud, on-prem, edge, and IoT environments"

Check failure on line 2 in Formula/kubeone.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

FormulaAudit/Desc: Description is too long. It should be less than 80 characters. The current length is 94.
homepage "https://github.com/kubermatic/kubeone"
version "1.8.0"
url "https://github.com/kubermatic/kubeone/archive/refs/tags/v1.8.0.tar.gz"

Check failure on line 5 in Formula/kubeone.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

FormulaAudit/ComponentsOrder: `url` (line 5) should be put before `version` (line 4)
sha256 "d4279f0f49fee6db6e9ce8d88cf19d5411b69ad85f4ff4ac514b31a676a1c311"
license "Apache-2.0"

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

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

def install
ENV["CGO_ENABLED"] = "true"
ENV["GO111MODULE"] = "on"
ENV["GOFLAGS"] = "-mod=readonly -trimpath"
ENV["GOLDFLAGS"] = "-s -w -extldflags=-zrelro -extldflags=-znow \
-X k8c.io/kubeone/pkg/cmd.defaultKubeVersion=v1.29.5 \
-X k8c.io/kubeone/pkg/cmd.version=v1.8.0 \
-X k8c.io/kubeone/pkg/cmd.commit=c280d14d95ac92a27576851cc058fc84562fcc55"
system "go", "build", "-ldflags=${GOLDFLAGS}", "-v" "-o", "kubeone"

Check failure on line 22 in Formula/kubeone.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

Lint/ImplicitStringConcatenation: Combine "-v" and "-o" into a single string literal, rather than using implicit string concatenation. Or, if they were intended to be separate method arguments, separate them with a comma.
bin.install "kubeone"
end

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

0 comments on commit b95aa78

Please sign in to comment.