ch7797| Deepak | adding monitoring user
This commit is contained in:
12
main.go
12
main.go
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user