kubes 0.9.0 → 0.9.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: db6959c3513133da9d5340dc8c332e15f86be47e5f72d47188243fafb21b3bd0
4
- data.tar.gz: 94762322cb38b47c1d4167060545012dd6416515628801efdd969fc8dd189b91
3
+ metadata.gz: 2481a18249c348869a45a16c59ab5718f7e0e0eabb0ad5d613720e162b0b6150
4
+ data.tar.gz: baab953af69e63ee3697dc995abdac3a49e734d825d4b60dbe253618c0adea69
5
5
  SHA512:
6
- metadata.gz: 9a506b81df303fd915146596f792fcbd6b0ede5b93c81d6bcd75f0fa3123a47129086969decef3d44b273e6740d518facf91053c8f10e61ad3de6698c673a0e9
7
- data.tar.gz: f2ddb1238b542b0279069a5b7417d4ed458384729cdd3859511b55222161c6443131ade97534f91fe19df9f20fae3074943a40120a3470bbf91142cd8d419a89
6
+ metadata.gz: db322cd2a2c7154f56f6980b2e76319d211ad84290d8d5fbf1ce11e502b65260a2f7b9202636cf59d9a03a25ed84d96024598e97117a465679383cd733679cce
7
+ data.tar.gz: 67e8ad348fd9bebc223c2b83c038c74999f7e1afc573fe94a989b161f7f1fde6cd35410b9fb120497dd93f565009f0793d6d8bc8208721f0aefd98324d4d6ed4
data/CHANGELOG.md CHANGED
@@ -3,6 +3,9 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [0.9.1] - 2022-08-24
7
+ - [#67](https://github.com/boltops-tools/kubes/pull/67) small improvement to show layering: show compiled output path
8
+
6
9
  ## [0.9.0] - 2022-08-24
7
10
  - [#66](https://github.com/boltops-tools/kubes/pull/66) show layering improvements: show resource layers also
8
11
  - only show error if exit_on_fail
@@ -8,7 +8,11 @@ Kube's Layering abilities are so powerful that they can be difficult to debug wh
8
8
 
9
9
  ## Enable Logging
10
10
 
11
- You can debug layers by turning a config to show the **found** layers. Currently, only variables layering is shown.
11
+ You can debug layers by setting `KUBES_LAYERING_SHOW=1`.
12
+
13
+ export KUBES_LAYERING_SHOW=1
14
+
15
+ You can also turn on show layering with a config.
12
16
 
13
17
  .kubes/config.rb
14
18
 
@@ -21,13 +25,13 @@ end
21
25
  This will show the **found** layers.
22
26
 
23
27
  $ kubes compile
24
- Compiling .kubes/resources/shared/namespace.yaml
25
- .kubes/variables/base.rb
26
- .kubes/variables/dev.rb
27
28
  Compiling .kubes/resources/web/deployment.yaml
28
- .kubes/variables/base.rb
29
- .kubes/variables/dev.rb
30
- Compiling .kubes/resources/web/service.yaml
29
+ Resource layers:
30
+ .kubes/resources/base/all.yaml
31
+ .kubes/resources/base/deployment.yaml
32
+ .kubes/resources/web/deployment.yaml
33
+ .kubes/resources/web/deployment/dev.yaml
34
+ Variables layers:
31
35
  .kubes/variables/base.rb
32
36
  .kubes/variables/dev.rb
33
37
 
@@ -37,18 +41,12 @@ If you want to also see all the considered layers use `KUBES_LAYERING_SHOW_ALL=1
37
41
 
38
42
  $ export KUBES_LAYERING_SHOW_ALL=1
39
43
  Compiling .kubes/resources/web/deployment.yaml
40
- Rendering .kubes/resources/web/deployment.yaml
41
- .kubes/variables/base.rb
42
- .kubes/variables/dev.rb
43
- .kubes/variables/base/all.rb
44
- .kubes/variables/base/all/dev.rb
45
- .kubes/variables/base/deployment.rb
46
- .kubes/variables/base/deployment/base.rb
47
- .kubes/variables/base/deployment/dev.rb
48
- .kubes/variables/web/deployment.rb
49
- .kubes/variables/web/deployment/base.rb
50
- .kubes/variables/web/deployment/dev.rb
51
- Rendering .kubes/resources/base/all.yaml
44
+ Resource layers:
45
+ .kubes/resources/base/all.yaml
46
+ .kubes/resources/base/deployment.yaml
47
+ .kubes/resources/web/deployment.yaml
48
+ .kubes/resources/web/deployment/dev.yaml
49
+ Variables layers:
52
50
  .kubes/variables/base.rb
53
51
  .kubes/variables/dev.rb
54
52
  .kubes/variables/base/all.rb
@@ -8,6 +8,7 @@ class Kubes::Compiler::Strategy
8
8
  hash = Kubes.deep_merge!(pre_layer, main)
9
9
  Kubes.deep_merge!(hash, post_layer)
10
10
  end
11
+ logger.info "Compiled .kubes/output/#{@save_file}" if Kubes.config.layering.show
11
12
  Result.new(@save_file, data)
12
13
  end
13
14
 
@@ -24,7 +24,7 @@ module Kubes
24
24
 
25
25
  write_full
26
26
 
27
- logger.info "Compiled .kubes/resources files to .kubes/output" if show_compiled_message?
27
+ logger.info "Compiled .kubes/resources files to .kubes/output" if show_compiled_message?
28
28
  end
29
29
 
30
30
  def resources
@@ -51,7 +51,7 @@ module Kubes
51
51
  IO.write(dest, content)
52
52
  end
53
53
 
54
- logger.debug "Compiled #{pretty(dest)}"
54
+ logger.debug "Written #{pretty(dest)}"
55
55
  end
56
56
 
57
57
  def write_full
@@ -62,7 +62,7 @@ module Kubes
62
62
  path = "#{Kubes.root}/.kubes/tmp/full.yaml" # write to tmp instead of output so it doesnt interfere with kubes get
63
63
  FileUtils.mkdir_p(File.dirname(path))
64
64
  IO.write(path, content)
65
- logger.debug "Compiled #{pretty(path)}"
65
+ logger.debug "Written #{pretty(path)}"
66
66
  end
67
67
 
68
68
  def show_compiled_message?
data/lib/kubes/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kubes
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen