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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 53cedc0b285936bb0c454d379b0068e8a597d13a79fc4a25e75f94a29cc65550
4
- data.tar.gz: 23fe3ad48670394a8deb74e80531d696f45480f9a179ca8d4dba17b3cd6d1642
3
+ metadata.gz: 7b847e5174335329207c6ed5730347b11f49c3ef219eefa485d23654a6accb5a
4
+ data.tar.gz: 605dfc7020e39c8429deb094463283146e59efa6b540fb8a8dee698e89957bc1
5
5
  SHA512:
6
- metadata.gz: 32af281c7d4ccea1c685251482ec4054fc15901376513b6bcb728210be83c941a39d8d13acbd9eaeec979dc14f97c2052ee0619cb367f3e355892425962e50f8
7
- data.tar.gz: a6208ffc0bb2460ef1c939d43c42646b7537640a8d6e3277fd44b6d728af6c139b8770805df3d57f2933c5b6569d0629335cd444a50c1aaef7d87beeed23a60b
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
- preamble = "#{full_cli_call} failed with exit status #{status}. Output follows:"
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, "#{full_cli_call} failed with exit_status #{status}") if and_raise
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
@@ -1,4 +1,3 @@
1
-
2
1
  module Rhelm
3
- VERSION = "0.2.0.pre"
2
+ VERSION = "0.2.0"
4
3
  end
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.pre
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: 1.3.1
140
+ version: '0'
141
141
  requirements: []
142
142
  rubygems_version: 3.2.13
143
143
  signing_key: