Set env var prefix to PODINFO

This commit is contained in:
Stefan Prodan
2018-08-21 11:58:37 +03:00
parent 593ccaa0cd
commit d362dc5f81
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ func main() {
viper.Set("hostname", hostname)
viper.Set("version", version.VERSION)
viper.Set("revision", version.REVISION)
viper.SetEnvPrefix("PI")
viper.SetEnvPrefix("PODINFO")
viper.SetEnvKeyReplacer(strings.NewReplacer("-", "_"))
viper.AutomaticEnv()
+1 -2
View File
@@ -3,9 +3,8 @@ package api
import (
"bytes"
"encoding/json"
"net/http"
"math/rand"
"net/http"
"time"
"github.com/stefanprodan/k8s-podinfo/pkg/version"