ch7797| Deepak | adding monitoring user

This commit is contained in:
Deepak Jain
2020-04-17 15:02:47 +05:30
parent 934b28b646
commit 1ae88066c6
6 changed files with 60 additions and 41 deletions

12
main.go
View File

@@ -2,11 +2,13 @@ package main
import (
"encoding/json"
"github.com/a8m/envsubst"
"github.com/urfave/cli/v2"
"io/ioutil"
"log"
"os"
"github.com/a8m/envsubst"
"github.com/caarlos0/env/v6"
"github.com/urfave/cli/v2"
)
func init() {
@@ -34,6 +36,12 @@ func parseManifest(manifestPath string) (*Manifest, error) {
return nil, err
}
err = env.Parse(&manifest.ExtraResources.Database)
if err != nil {
log.Fatalf("\nErr: %v", err)
return nil, err
}
manifest.ExtraResources.Workspace = workspaceMap[manifest.ExtraResources.Environment]
manifest.Deployment.NameSuffix = DEPLOYMENT_NAME_SUFFIX