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 +4 -4
- data/CHANGELOG.md +3 -0
- data/docs/_docs/layering/debug.md +17 -19
- data/lib/kubes/compiler/strategy/dispatcher.rb +1 -0
- data/lib/kubes/compiler.rb +3 -3
- data/lib/kubes/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2481a18249c348869a45a16c59ab5718f7e0e0eabb0ad5d613720e162b0b6150
|
4
|
+
data.tar.gz: baab953af69e63ee3697dc995abdac3a49e734d825d4b60dbe253618c0adea69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
29
|
-
.kubes/
|
30
|
-
|
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
|
-
|
41
|
-
.kubes/
|
42
|
-
.kubes/
|
43
|
-
.kubes/
|
44
|
-
.kubes/
|
45
|
-
|
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
|
data/lib/kubes/compiler.rb
CHANGED
@@ -24,7 +24,7 @@ module Kubes
|
|
24
24
|
|
25
25
|
write_full
|
26
26
|
|
27
|
-
logger.info "Compiled
|
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 "
|
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 "
|
65
|
+
logger.debug "Written #{pretty(path)}"
|
66
66
|
end
|
67
67
|
|
68
68
|
def show_compiled_message?
|
data/lib/kubes/version.rb
CHANGED