Skip to content

Commit

Permalink
fix(missingKey): make the missing key less strict by allowing the zer…
Browse files Browse the repository at this point in the history
…ovalue based on the type of variable
  • Loading branch information
Sangeetha Madamanchi committed Jan 5, 2024
1 parent 694be3c commit ddd7c9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/application_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ func (r *ApplicationReconciler) renderValues(application *v1.Application) error

for key, value := range values {
buf := new(bytes.Buffer)
tmpl, err := template.New("properties").Option("missingkey=error").Delims(leftDelimiter, rightDelimiter).Parse(value)
tmpl, err := template.New("properties").Option("missingkey=zero").Delims(leftDelimiter, rightDelimiter).Parse(value)
if err != nil {
return err
}
Expand Down

0 comments on commit ddd7c9b

Please sign in to comment.