File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -2574,6 +2574,7 @@ notcurses
25742574noti
25752575notifiers
25762576notify
2577+ nova
25772578nox
25782579nping
25792580npm-check-updates
Original file line number Diff line number Diff line change 1+ class Nova < Formula
2+ desc "Find outdated or deprecated Helm charts running in your cluster"
3+ homepage "https://github.com/FairwindsOps/nova"
4+ url "https://github.com/FairwindsOps/nova/archive/refs/tags/v3.11.3.tar.gz"
5+ sha256 "5f70b5a904c773190e104776a42afd9b798f682b7f1bafc12c27818120a94911"
6+ license "Apache-2.0"
7+ head "https://github.com/FairwindsOps/nova.git" , branch : "master"
8+
9+ depends_on "go" => :build
10+
11+ def install
12+ system "go" , "build" , *std_go_args ( ldflags : "-s -w -X main.version=#{ version } -X main.commit=#{ tap . user } " )
13+
14+ generate_completions_from_executable ( bin /"nova" , "completion" )
15+ end
16+
17+ test do
18+ assert_match version . to_s , shell_output ( "#{ bin } /nova version" )
19+
20+ system bin /"nova" , "generate-config" , "--config=nova.yaml"
21+ assert_match "chart-ignore-list: []" , ( testpath /"nova.yaml" ) . read
22+
23+ output = shell_output ( "#{ bin } /nova find --helm 2>&1" , 255 )
24+ assert_match "try setting KUBERNETES_MASTER environment variable" , output
25+ end
26+ end
You can’t perform that action at this time.
0 commit comments