File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
lib/kubernetes_template_rendering Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
44
55Note: this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
66
7+ ## [ 0.2.3] - 2025-03-25
8+ ### Fixed
9+ - Fixed ` --variable-override ` to accept multiple arguments to override multiple variables
10+
711## [ 0.2.2] - 2024-06-17
812### Fixed
913- Fixed a bug allowing child process errors to be ignored while rendering.
Original file line number Diff line number Diff line change @@ -34,9 +34,12 @@ def parse(options)
3434 op . on ( "--[no-]prune" , "enable/disable pruning of untouched resources" ) { args . prune = _1 }
3535 op . on ( "--source-repo=SOURCE_REPO" , "set the source repo for the rendered templates" ) { args . source_repo = _1 }
3636
37- op . on ( "--variable-override=KEY:VALUE" , "override a variable value set within definitions.yaml" ) do |override |
38- args . variable_overrides ||= { }
39- args . variable_overrides . merge! ( Hash [ [ override . split ( ":" , 2 ) ] ] )
37+ op . on ( "--variable-override=KEY:VALUE" , "override a variable value set within definitions.yaml" , Array ) do |overrides |
38+ args . variable_overrides ||= { } # Initialize as a Hash
39+ overrides . each do |override |
40+ key , value = override . split ( ":" , 2 )
41+ args . variable_overrides [ key ] = value if key && value
42+ end
4043 end
4144
4245 op . on ( "-h" , "--help" ) do
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
33module KubernetesTemplateRendering
4- VERSION = "0.2.2 "
4+ VERSION = "0.2.3 "
55end
You can’t perform that action at this time.
0 commit comments