kubernetes_template_rendering 0.2.5 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +7 -3
- data/lib/kubernetes_template_rendering/template.rb +2 -10
- data/lib/kubernetes_template_rendering/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9af904e0320cde59e48a71f4443a2c54c7c348d695cff9dcf07b6e5fc06f5530
|
|
4
|
+
data.tar.gz: c836adebed169a9056ceee7174230a1a04bbbb85ab43847f4927b329c7f9f950
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f88099113538d5fd13d5eb5141eefbc0b2265e9322a9e307ca5900ba24eeb0187c6bd43d630fb3b7a5e6e7be4ba233c08d502dfe634a41619955ed77da5b3fb
|
|
7
|
+
data.tar.gz: 23c037c3998cf6cc0754d243593e31d45c6355ad61a032fdb6a6131c646e1b345df848ec27d18c277c63a3097ea03edc9b3d93badec5b5cf0636bb52c2750fdd
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
|
4
4
|
|
|
5
5
|
Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [0.3.0] - 2026-06-24
|
|
8
|
+
### Fixed
|
|
9
|
+
- Ruby 4.0 compatibility: declare `ostruct` as a dependency (it is `require`d directly but was removed from Ruby's default gems in 4.0.0) and bump `activesupport` to `7.2.3.1` so its `logger` dependency is resolved (`logger` was likewise dropped from default gems).
|
|
10
|
+
|
|
11
|
+
### Removed
|
|
12
|
+
- No longer emit the `# Variable overrides used:` comment in rendered files. Because overrides such as `deploySha` change on every build, this comment caused large, content-free diffs across every rendered file. `--variable-override` still applies the overrides to the rendered output; only the comment is removed.
|
|
13
|
+
|
|
7
14
|
## [0.2.5] - 2025-05-08
|
|
8
15
|
### Fixed
|
|
9
16
|
- Updated `rexml` dependency to avoid security issues
|
data/README.md
CHANGED
|
@@ -7,12 +7,14 @@ configuration for various deployment environments.
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
9
|
Install the gem and add to the application's Gemfile by executing:
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
```bash
|
|
11
12
|
bundle add kubernetes_template_rendering
|
|
12
13
|
```
|
|
13
14
|
|
|
14
15
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
|
15
|
-
|
|
16
|
+
|
|
17
|
+
```bash
|
|
16
18
|
gem install kubernetes_template_rendering
|
|
17
19
|
```
|
|
18
20
|
|
|
@@ -23,6 +25,7 @@ To use this gem you can either install it, and use the `render_kubernetes_templa
|
|
|
23
25
|
`gem exec` to execute the command without first installing the gem.
|
|
24
26
|
|
|
25
27
|
### Example Usage
|
|
28
|
+
|
|
26
29
|
```bash
|
|
27
30
|
gem exec -g kubernetes_template_rendering render_templates \
|
|
28
31
|
--jsonnet-library-path deployment/vendor \
|
|
@@ -33,6 +36,7 @@ gem exec -g kubernetes_template_rendering render_templates \
|
|
|
33
36
|
### Options
|
|
34
37
|
|
|
35
38
|
To see a full list of options and how to use them, run the following command:
|
|
39
|
+
|
|
36
40
|
```bash
|
|
37
41
|
gem exec -g kubernetes_template_rendering render_templates --help
|
|
38
42
|
```
|
|
@@ -45,4 +49,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
45
49
|
|
|
46
50
|
## Contributing
|
|
47
51
|
|
|
48
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/invoca/kubernetes_template_rendering
|
|
52
|
+
Bug reports and pull requests are welcome on GitHub at <https://github.com/invoca/kubernetes_template_rendering>.
|
|
@@ -25,11 +25,11 @@ module KubernetesTemplateRendering
|
|
|
25
25
|
|
|
26
26
|
def with_auto_generated_yaml_comment(yaml_string)
|
|
27
27
|
comment = <<~EOS
|
|
28
|
-
# WARNING: DO
|
|
28
|
+
# WARNING: DO NOT EDIT THIS FILE!
|
|
29
29
|
# Any changes made here will be lost.
|
|
30
30
|
# This file is autogenerated from #{full_template_path}
|
|
31
31
|
EOS
|
|
32
|
-
comment +
|
|
32
|
+
comment + yaml_string
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
def full_template_path
|
|
@@ -40,14 +40,6 @@ module KubernetesTemplateRendering
|
|
|
40
40
|
end
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
-
def variable_override_comment
|
|
44
|
-
if variable_overrides&.any?
|
|
45
|
-
<<~EOS
|
|
46
|
-
# Variable overrides used: #{variable_overrides.to_json}
|
|
47
|
-
EOS
|
|
48
|
-
end || ""
|
|
49
|
-
end
|
|
50
|
-
|
|
51
43
|
class << self
|
|
52
44
|
# @param [String] template_path: file path to template file that needs to be rendered.
|
|
53
45
|
# @param [Hash]: variables that will be used in the template file to generate distict files.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kubernetes_template_rendering
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Octothorpe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-06-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -52,6 +52,20 @@ dependencies:
|
|
|
52
52
|
- - ">="
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: ostruct
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :runtime
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - ">="
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
55
69
|
description: Tool for rendering ERB and Jsonnet templates
|
|
56
70
|
email:
|
|
57
71
|
- octothorpe@invoca.com
|