kubernetes_template_rendering 0.6.0.prerelease.tstarck.1 → 0.6.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5db190341419a622d7593eea77f9ad5525839c0c2039d540edd55a6ce8117479
|
|
4
|
+
data.tar.gz: ac8e1ec55caccb59e15cc7b552c58e433f14ac3d3946b9100a1895cfcab97ea2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34090f91339fc87a45fb91bd3174f281953d952f618ee91b035fb4ecc1dca9c9f2f1cbc8c0f7450cdac739c93229e5b18c4a7e547d22bc735f550808747de74b
|
|
7
|
+
data.tar.gz: 8bac2935eb16a00898e10f132f8fb5260a71feae470719267111ea2118c3a2d25267130e8d71683936e4faa40473aa8616f2ba90060abdbcf1af29e2a8c721be
|
data/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,11 @@ 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.6.
|
|
7
|
+
## [0.6.1] - 2026-07-08
|
|
8
|
+
### Fixed
|
|
9
|
+
- Fixed `variable_overrides` and `source_repo` not being forwarded to child `Resource` instances created by `DeployGroupedResource`. Previously, `--variable-override` values (e.g. `deploySha`) were silently unavailable inside all `*-deploy.jsonnet` and `*-deploy.yaml.erb` templates, causing a `KeyError` at render time. `DeployGroupedResource#initialize` now accepts both as optional keyword arguments and passes them through to each `Resource.new` call in `#render`. `ResourceSet#grouped_resources` is updated to supply both values.
|
|
10
|
+
|
|
11
|
+
## [0.6.0] - 2026-07-06
|
|
8
12
|
### Added
|
|
9
13
|
- Added `--reconcile` flag: a bounded, marker-based sweep that replaces the destructive per-entry `rm -rf` of `--prune`. It touches a marker before rendering, then after rendering deletes only files older than the marker under each scope root (`<region>/<cluster_type>/<color>/`) and removes empty directories, correctly cleaning up directories of deleted/renamed entries. `spp/` subtrees are fenced out of the base sweep, paths resolving outside their scope prefix raise a hard error, and `--reconcile` combined with `--prune` is rejected.
|
|
10
14
|
- Made `--reconcile` `--spp`-aware: without `--spp` only the `SPP-PLACEHOLDER` subtree is swept; with `--spp NAME` the sweep covers `SPP-PLACEHOLDER` (always re-rendered, as the expansion source) plus each requested per-SPP subtree (substituting `SPP-PLACEHOLDER` into the sweep root), leaving unrequested SPP siblings intact. Rejected `--reconcile` combined with `--only`, which would delete un-rendered siblings under the shared base root. See ADR-0002.
|
data/catalog-info.yaml
CHANGED
|
@@ -8,7 +8,7 @@ module KubernetesTemplateRendering
|
|
|
8
8
|
|
|
9
9
|
attr_reader :groups_to_render, :variables, :template_path, :output_directory, :template_path_exclusions, :group_variable_name
|
|
10
10
|
|
|
11
|
-
def initialize(template_path:, definitions_path:, variables:, output_directory:, groups_to_render:, template_path_exclusions:, group_variable_name: nil)
|
|
11
|
+
def initialize(template_path:, definitions_path:, variables:, output_directory:, groups_to_render:, template_path_exclusions:, group_variable_name: nil, variable_overrides: {}, source_repo: nil)
|
|
12
12
|
@template_path = template_path
|
|
13
13
|
@definitions_path = definitions_path
|
|
14
14
|
@variables = variables
|
|
@@ -16,6 +16,8 @@ module KubernetesTemplateRendering
|
|
|
16
16
|
@groups_to_render = groups_to_render
|
|
17
17
|
@template_path_exclusions = template_path_exclusions || {}
|
|
18
18
|
@group_variable_name = group_variable_name || DEFAULT_GROUP_VARIABLE_NAME
|
|
19
|
+
@variable_overrides = variable_overrides
|
|
20
|
+
@source_repo = source_repo
|
|
19
21
|
end
|
|
20
22
|
|
|
21
23
|
def render(args)
|
|
@@ -28,7 +30,7 @@ module KubernetesTemplateRendering
|
|
|
28
30
|
else
|
|
29
31
|
vars = variables.merge(group_variable_name => deploy_group)
|
|
30
32
|
filename = filename_for_deploy_group(deploy_group)
|
|
31
|
-
Resource.new(template_path: template_path, definitions_path: @definitions_path, variables: vars, output_directory: output_directory, output_filename: filename).tap do |resource|
|
|
33
|
+
Resource.new(template_path: template_path, definitions_path: @definitions_path, variables: vars, output_directory: output_directory, output_filename: filename, variable_overrides: @variable_overrides, source_repo: @source_repo).tap do |resource|
|
|
32
34
|
resource.render(args) if args.render_files?
|
|
33
35
|
end
|
|
34
36
|
end
|
|
@@ -293,7 +293,9 @@ module KubernetesTemplateRendering
|
|
|
293
293
|
output_directory: output_directory,
|
|
294
294
|
groups_to_render: deploy_groups_to_render,
|
|
295
295
|
template_path_exclusions: deploy_group_config["exclude_files"],
|
|
296
|
-
group_variable_name: deploy_group_config["variable_name"]
|
|
296
|
+
group_variable_name: deploy_group_config["variable_name"],
|
|
297
|
+
variable_overrides: variable_overrides,
|
|
298
|
+
source_repo: source_repo
|
|
297
299
|
)
|
|
298
300
|
end
|
|
299
301
|
end
|
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.6.
|
|
4
|
+
version: 0.6.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Octothorpe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-07-
|
|
11
|
+
date: 2026-07-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|