We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3a99ce3 + 3f860b7 commit 8a3a430Copy full SHA for 8a3a430
internal/config/default_config.go
@@ -2,15 +2,13 @@ package config
2
3
import (
4
"time"
5
-
6
- "github.com/spf13/viper"
7
)
8
9
var (
10
Server = map[string]string{
11
"name": "meshery-meshsync",
12
"port": "11000",
13
- "version": viper.GetString("BUILD"),
+ "version": "latest",
14
"startedat": time.Now().String(),
15
}
16
main.go
@@ -44,6 +44,8 @@ func main() {
44
45
46
cfg.SetKey(config.BrokerURL, os.Getenv("BROKER_URL"))
47
+
48
+ config.Server["version"] = version
49
err = cfg.SetObject(config.ServerKey, config.Server)
50
if err != nil {
51
log.Error(err)
0 commit comments