Skip to content

Commit

Permalink
Merge pull request #679 from ckeyer/template_getenv
Browse files Browse the repository at this point in the history
add getenv
  • Loading branch information
aledbf authored May 10, 2017
2 parents 433220d + 87b0584 commit 317f222
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/nginx/pkg/template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"encoding/json"
"fmt"
"net"
"os"
"os/exec"
"strings"
text_template "text/template"
Expand Down Expand Up @@ -139,6 +140,7 @@ var (
"buildResolvers": buildResolvers,
"isLocationAllowed": isLocationAllowed,
"buildLogFormatUpstream": buildLogFormatUpstream,
"getenv": os.Getenv,
"contains": strings.Contains,
"hasPrefix": strings.HasPrefix,
"hasSuffix": strings.HasSuffix,
Expand Down

0 comments on commit 317f222

Please sign in to comment.