minfra-cli 2.2.0 → 3.0.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: 20d6ef8704c3f8f61e70deebd60afc9663a9df46e2741f03a30eb9f5020fe2e0
4
- data.tar.gz: b173a73d17868a0b8f13ce11cdefc0e997aa50af7bb07c0448946fa121d9275d
3
+ metadata.gz: ec0639d81eca018b238482b84cc895bdb32ee7a1b5bb3d1d6696f1b042f61e23
4
+ data.tar.gz: b84403ebad45d5c4d12d2107c5c6c11e9f0ccfdaaa30a814144e9e2204e863d4
5
5
  SHA512:
6
- metadata.gz: 5725dd5eed53295676e895f14bf84a3d729fa82664b5578dde1540f47455b1050e236d9321291185ed935e14a1a9de3b691e82b8ce83db9c0f7b19419877cab4
7
- data.tar.gz: 6b92c6757e2d0ccfaefe8d6847c55c77800159e820ff7f41f54c4d3bff9801118b566febed21be9f92bcfd4cd9a443dcb29f09487e8a7366d0273a92858be337
6
+ metadata.gz: 0c0da44b29f119c3cab74943f00e1371ce313fab2ecf05fc6f9e34eb5d64b90399cb985b2b48065904af01d905669ac4437ae0a627277b4a21bf53dab253b27e
7
+ data.tar.gz: 3459bae4cda6ec35edb67b31885bfe894faf4b973d13f53c17df1a055728667fb5c33ea45cce4aa95a28f601c0dea25e7000eb072258cc7fc9fcd1f0da722a63
data/CHANGELOG.md CHANGED
@@ -1,15 +1,19 @@
1
+ # 3.0.0
2
+ * change: debug output on template errors
3
+ Incompatibility
4
+ * change: used_vars are turned into true yaml types when creating the value file
1
5
  # 2.2.0
2
6
  * fixing: should not modify l('env.roles')
3
7
  * cleanup: removing template testing --debug flag, causing noise
4
8
  * cleanup: removing Documentation hooks
5
9
  * fixing: hiera lookup retrying on gpg memory error exceptions
6
- *
10
+ * adding: gpgme dependency
7
11
  # 2.1.0
8
- * add :all hook
9
- * fixing setup dev
10
- * colored errors
11
- * wrapping hiera lookup errors of gpg
12
- * adding HIERA_DEBUG_LOOKUPS=true
12
+ * adding: :all hook
13
+ * fixing: setup dev
14
+ * adding: colored errors and warnings
15
+ * change: wrapping hiera lookup errors of gpg
16
+ * adding: HIERA_DEBUG_LOOKUPS=true
13
17
  # 2.0.1
14
18
  Refactorings
15
19
  * installing into Kernel only when 'exec' not at 'init' time
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Minfra
4
4
  module Cli
5
- VERSION = '2.2.0'
5
+ VERSION = '3.0.0'
6
6
  end
7
7
  end
@@ -196,6 +196,7 @@ module Orchparty
196
196
 
197
197
  debug('Helm: template check: OK')
198
198
  else
199
+ system("#{cmd} --debug")
199
200
  error('Helm: template check: FAIL')
200
201
  end
201
202
  end
@@ -246,7 +247,19 @@ module Orchparty
246
247
  output_chart_path: output_chart_path
247
248
  )
248
249
  used_vars.each do |variable, value|
249
- helm_values.puts "#{variable}: \"#{value}\""
250
+ if value.is_a?(Numeric) && value >= 1000000 # this is bad as conversion is done only in some cases
251
+ value = value.to_s # see https://github.com/helm/helm/issues/3001
252
+ end
253
+ yml = { variable => value}.to_yaml[4..-1]
254
+ yml = case
255
+ when yml.match(/!ruby\/object/)
256
+ { variable => value.to_s}.to_yaml[4..-1]
257
+ when yml.match(/!ruby\/array:Hashie::Array/)
258
+ { variable => value.to_a}.to_yaml[4..-1]
259
+ else
260
+ yml
261
+ end
262
+ helm_values.write(yml)
250
263
  end
251
264
  end
252
265
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minfra-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Schrammel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-02-02 00:00:00.000000000 Z
11
+ date: 2024-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor