Skip to content

Commit

Permalink
externalize json
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Tiwari <[email protected]>
  • Loading branch information
Revolyssup committed Dec 26, 2022
1 parent 35d1027 commit ce936d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/config.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package build

import (
"encoding/json"
"fmt"
"io"
"log"
"os"
"path/filepath"
Expand Down Expand Up @@ -70,6 +72,9 @@ func init() {
fmt.Println(err.Error())
}
}()
byt, _ := io.ReadAll(f)

_ = json.Unmarshal(byt, &meshmodelmetadata)
WorkloadPath = filepath.Join(wd, "templates", "oam", "workloads")
MeshModelPath = filepath.Join(wd, "templates", "meshmodel", "components")
allVersions, _ := utils.GetLatestReleaseTagsSorted("hashicorp", "consul-k8s")
Expand Down

0 comments on commit ce936d7

Please sign in to comment.