Skip to content

Commit

Permalink
add wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Beranek committed Sep 19, 2022
1 parent 4c5f6dc commit e2c6411
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/helms.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func wrapHelmCommand(cmd string, mode string, args []string) ([]byte, error) {
value = strings.TrimPrefix(pair, variable[0]+"=")
log.Debugf("Setting %s", value)
}
args = append(args, []string{"--set", value}...)
args = append(args, []string{"--set", fmt.Sprintf("\"%s\"", value)}...)
}
}
helmArgs, err := getArgs(args)
Expand Down Expand Up @@ -105,7 +105,7 @@ func normalizeName(name string) string {
replaceForBrackets := fmt.Sprintf("___%s___", match)
pattern := "[%s]"
if !strings.HasSuffix(name, replaceForBrackets) {
pattern = "[%s]."
pattern = "\\[%s\\]."
}
name = strings.ReplaceAll(name, replaceForBrackets, fmt.Sprintf(pattern, match))
}
Expand Down
2 changes: 1 addition & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "set"
version: "0.0.11"
version: "0.0.12"
usage: "helm set install|upgrade"
description: |-
This plugin provides a way to translate environment variables
Expand Down

0 comments on commit e2c6411

Please sign in to comment.