minfra-cli 1.6.0 → 1.6.1

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: a79262f46479ee057b3285d260867512ab02a63ddfbf83f9d6a801854770a880
4
- data.tar.gz: 8494a07eda5881a3c1b7aced8e4a4835d73ba3456180a12aad59d258e722cad6
3
+ metadata.gz: 0cee136b8311f1099c78490bfcf6da7be65e5fd8dc0cb029e8dc3828646e6631
4
+ data.tar.gz: 46d3929cc27282bc0ed1ac63c4db00c64a7e55e6dbd311319a29dff7d68ab403
5
5
  SHA512:
6
- metadata.gz: 1b8e0cba7632dca57d50323eee59e30116d8685864c261466c1b85a13da05fdf4ca6b34ef883afdc8ef3d895c571441586aa93d14c82f467c97598475acfa950
7
- data.tar.gz: 28e954fc5a49b5c140e77633f91774fcd16323c28c305909985bd15052b3975f50e2a09d2e6c96e80e8fbf36eeefa931a7d8dfeb1f9716c7272f73249a73c260
6
+ metadata.gz: 469d14ac4671707412d214cd24d7c682bbd5ea62a1ee23dc87d0512eab1ec4ca51223751cfab73c2e96f96ccdba20f25f1394b32d61dd57a231862c1ff3fa25b
7
+ data.tar.gz: 70f3bc9ea2ec6f6509d709a6c68969453335f47063086063194cb616aa5db6131b8af69377fe935c329f25df8cbd0096e9fbb9ae44fbfd9035c8be1640b1982a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 1.6.1
2
+ * adding minfra_path to hiera scope
3
+ * fixing state preparation when state dir not yet there
1
4
  # 1.6.0
2
5
  * collecting things in used_vars
3
6
  * no overwriting of values.yaml between each char (as the helm template dir is shared)
@@ -1,5 +1,5 @@
1
1
  module Minfra
2
2
  module Cli
3
- VERSION = '1.6.0'.freeze
3
+ VERSION = '1.6.1'.freeze
4
4
  end
5
5
  end
data/lib/minfra/cli.rb CHANGED
@@ -79,7 +79,7 @@ module Minfra
79
79
  hiera_main_path=@hiera_root.join("hieradata/#{config.project.minfra.hiera.env_path}/#{env}.eyaml")
80
80
  raise("unknown environment #{env}, I expact a file at #{hiera_main_path}") unless hiera_main_path.exist?
81
81
 
82
- scope={ "hieraroot" => @hiera_root.to_s, "env" => env}
82
+ scope={ "minfra_path" => ENV["MINFRA_PATH"], "hieraroot" => @hiera_root.to_s, "env" => env}
83
83
  special_lookups=hiera.lookup("lookup_options", {}, scope, nil, :priority)
84
84
 
85
85
  node_scope=hiera.lookup("env", {}, scope, nil, :deeper)
@@ -312,7 +312,7 @@ class KubernetesApplication
312
312
  private
313
313
  def prepare
314
314
  output_chart_path = @status_dir.join('helm')
315
- output_chart_path.rmtree
315
+ output_chart_path.rmtree if output_chart_path.exist?
316
316
  output_chart_path.mkpath
317
317
  templates_path = file_path.join('../../chart-templates').expand_path #don't ask. the whole concept of multiple charts in an app stinks...
318
318
 
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: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Schrammel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-19 00:00:00.000000000 Z
11
+ date: 2023-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor