Skip to content

Commit

Permalink
Merge pull request #347 from Revolyssup/master
Browse files Browse the repository at this point in the history
externalize json
  • Loading branch information
Revolyssup committed Dec 26, 2022
2 parents 35d1027 + ce936d7 commit db1321e
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 db1321e

Please sign in to comment.