Skip to content

Commit

Permalink
feat(nginx/config_renderer): add strings.{Contains,Has{Prefix,Suffix}…
Browse files Browse the repository at this point in the history
…} as custom funcs
  • Loading branch information
nettoclaudio committed Mar 26, 2020
1 parent c9d4495 commit 7d69daf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/pkg/rpaas/nginx/configuration_render.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ var templateFuncs = template.FuncMap(map[string]interface{}{
"httpsPort": httpsPort,
"purgeLocationMatch": purgeLocationMatch,
"vtsLocationMatch": vtsLocationMatch,
"contains": strings.Contains,
"hasPrefix": strings.HasPrefix,
"hasSuffix": strings.HasSuffix,
})

var defaultMainTemplate = template.Must(template.New("main").
Expand Down

0 comments on commit 7d69daf

Please sign in to comment.