Skip to content

Commit 74ae8ad

Browse files
authored
Merge pull request Homebrew#225182 from Homebrew/reckoner
reckoner 6.1.0 (new formula)
2 parents 2dddd90 + 6cdc275 commit 74ae8ad

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.github/autobump.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3115,6 +3115,7 @@ readpe
31153115
readsb
31163116
rebar3
31173117
recc
3118+
reckoner
31183119
recode
31193120
recoverpy
31203121
redict

Formula/r/reckoner.rb

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
class Reckoner < Formula
2+
desc "Declaratively install and manage multiple Helm chart releases"
3+
homepage "https://github.com/FairwindsOps/reckoner"
4+
url "https://github.com/FairwindsOps/reckoner/archive/refs/tags/v6.1.0.tar.gz"
5+
sha256 "499d31ca10e1ab0e09a8ede5a8bf9adeab88d8d081f57ee30b1cc3f0864735b7"
6+
license "Apache-2.0"
7+
head "https://github.com/FairwindsOps/reckoner.git", branch: "master"
8+
9+
bottle do
10+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "94837511a2176e73a13857a65e796c789b0eab21426754d8964fa5f23a70d830"
11+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "94837511a2176e73a13857a65e796c789b0eab21426754d8964fa5f23a70d830"
12+
sha256 cellar: :any_skip_relocation, arm64_ventura: "94837511a2176e73a13857a65e796c789b0eab21426754d8964fa5f23a70d830"
13+
sha256 cellar: :any_skip_relocation, sonoma: "c306a999e8b9f99767918beaf886b698646bf0df84aaf0f84f8f2ba5be257dec"
14+
sha256 cellar: :any_skip_relocation, ventura: "c306a999e8b9f99767918beaf886b698646bf0df84aaf0f84f8f2ba5be257dec"
15+
sha256 cellar: :any_skip_relocation, x86_64_linux: "728e430d18ad959bd4722c12b93cc7f06462878e85de54d2ab069246e8326f63"
16+
end
17+
18+
depends_on "go" => :build
19+
depends_on "helm"
20+
21+
def install
22+
system "go", "build", *std_go_args(ldflags: "-s -w -X main.version=#{version} -X main.commit=#{tap.user}")
23+
24+
generate_completions_from_executable(bin/"reckoner", "completion")
25+
end
26+
27+
test do
28+
assert_match version.to_s, shell_output("#{bin}/reckoner version")
29+
30+
# Basic Reckoner course file
31+
(testpath/"course.yaml").write <<~YAML
32+
schema: v2
33+
namespace: test
34+
repositories:
35+
stable:
36+
url: https://charts.helm.sh/stable
37+
releases:
38+
- name: nginx
39+
namespace: test
40+
chart: stable/nginx-ingress
41+
version: 1.41.3
42+
values:
43+
replicaCount: 1
44+
YAML
45+
46+
output = shell_output("#{bin}/reckoner lint #{testpath}/course.yaml 2>&1")
47+
assert_match "No schema validation errors found", output
48+
end
49+
end

0 commit comments

Comments
 (0)