rhelm 0.2.0.pre → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rhelm/client.rb +1 -2
- data/lib/rhelm/subcommand/base.rb +5 -2
- data/lib/rhelm/version.rb +1 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b847e5174335329207c6ed5730347b11f49c3ef219eefa485d23654a6accb5a
|
4
|
+
data.tar.gz: 605dfc7020e39c8429deb094463283146e59efa6b540fb8a8dee698e89957bc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87a3d069fe7529b0105417544944a2acf1fbb0554ad0dab66f1d513468ed440697c701a5bddde38c9c071a3a79e206932a3744f1ed0e27dee9495df034da8549
|
7
|
+
data.tar.gz: 82d252c1f4bbf66cfc912f42e497c48be6e4a7195b1634fbc0c6e10cc8b643ec47951b9809e52df29549ccfd0a05f4809a584efdb1b8eec90f106af62eac0ed2
|
data/lib/rhelm/client.rb
CHANGED
@@ -6,9 +6,8 @@ module Rhelm
|
|
6
6
|
class Error < StandardError; end
|
7
7
|
|
8
8
|
SUBCOMMANDS = %i(
|
9
|
-
dependency env history install pull rollback
|
9
|
+
dependency env history install lint list pull rollback
|
10
10
|
status test uninstall upgrade verify version
|
11
|
-
list lint
|
12
11
|
)
|
13
12
|
SUBCOMMANDS.each { |s| require_relative "subcommand/#{s}" }
|
14
13
|
|
@@ -67,7 +67,10 @@ module Rhelm
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def report_failure(lines, status, and_raise: true)
|
70
|
-
|
70
|
+
sanitized_full_cli_call = full_cli_call
|
71
|
+
kube_token_index = sanitized_full_cli_call.find_index("--kube-token")
|
72
|
+
sanitized_full_cli_call[kube_token_index + 1] = "[REDACTED]" if kube_token_index
|
73
|
+
preamble = "#{sanitized_full_cli_call} failed with exit status #{status}. Output follows:"
|
71
74
|
if @client.logger
|
72
75
|
client.logger.error(preamble)
|
73
76
|
client.logger.error(lines)
|
@@ -75,7 +78,7 @@ module Rhelm
|
|
75
78
|
STDERR.puts premable
|
76
79
|
STDERR.puts lines
|
77
80
|
end
|
78
|
-
raise(Error, "#{
|
81
|
+
raise(Error, "#{sanitized_full_cli_call} failed with exit_status #{status}") if and_raise
|
79
82
|
end
|
80
83
|
end
|
81
84
|
end
|
data/lib/rhelm/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rhelm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jack Newton
|
@@ -135,9 +135,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
135
135
|
version: '2.7'
|
136
136
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
137
|
requirements:
|
138
|
-
- - "
|
138
|
+
- - ">="
|
139
139
|
- !ruby/object:Gem::Version
|
140
|
-
version:
|
140
|
+
version: '0'
|
141
141
|
requirements: []
|
142
142
|
rubygems_version: 3.2.13
|
143
143
|
signing_key:
|