Skip to content

Commit

Permalink
feat: Add escape_var function to escape go template syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusramberg committed Jun 4, 2024
1 parent 47b0e65 commit f2e2418
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eval.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ rec {
# expand secret values
vals = val: ''{{"${val}"|fetchSecretValue}}'';

# Escape go template variables
escape_var = var: ''{{"${var}"}}'';

# render helmfile to object
render =
state: env: val:
Expand All @@ -24,6 +27,7 @@ rec {
in
hf {
inherit
escape_var
lib
var
vals
Expand Down

0 comments on commit f2e2418

Please sign in to comment.