From 15cc763b2d16e0a61c45ce25062776354e8347d0 Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Wed, 7 Sep 2016 13:21:28 -0700 Subject: [PATCH] Add function helpers to nginx template --- controllers/nginx/nginx/template/template.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/controllers/nginx/nginx/template/template.go b/controllers/nginx/nginx/template/template.go index 1ef5fa5c8..ed3cae266 100644 --- a/controllers/nginx/nginx/template/template.go +++ b/controllers/nginx/nginx/template/template.go @@ -52,6 +52,11 @@ var ( "buildProxyPass": buildProxyPass, "buildRateLimitZones": buildRateLimitZones, "buildRateLimit": buildRateLimit, + "contains": strings.Contains, + "hasPrefix": strings.HasPrefix, + "hasSuffix": strings.HasSuffix, + "toUpper": strings.ToUpper, + "toLower": strings.ToLower, } )