File tree 5 files changed +9
-4
lines changed
5 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ configuration:
17
17
url : http://dummy
18
18
authKeysDbName : authentication
19
19
authUrl : http://dummy
20
+ webuiUri : webui:9876
20
21
plmnSupportList :
21
22
- plmnId :
22
23
mcc : " 208"
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ type Configuration struct {
42
42
Sbi * Sbi `yaml:"sbi"`
43
43
Mongodb * Mongodb `yaml:"mongodb"`
44
44
NrfUri string `yaml:"nrfUri"`
45
+ WebuiUri string `yaml:"webuiUri"`
45
46
PlmnSupportList []PlmnSupportItem `yaml:"plmnSupportList,omitempty"`
46
47
}
47
48
Original file line number Diff line number Diff line change @@ -57,10 +57,13 @@ func InitConfigFactory(f string) error {
57
57
if UdrConfig .Configuration .Mongodb .AuthKeysDbName == "" {
58
58
UdrConfig .Configuration .Mongodb .AuthKeysDbName = "authentication"
59
59
}
60
+ if UdrConfig .Configuration .WebuiUri == "" {
61
+ UdrConfig .Configuration .WebuiUri = "webui:9876"
62
+ }
60
63
roc := os .Getenv ("MANAGED_BY_CONFIG_POD" )
61
64
if roc == "true" {
62
65
initLog .Infoln ("MANAGED_BY_CONFIG_POD is true" )
63
- commChannel := client .ConfigWatcher ()
66
+ commChannel := client .ConfigWatcher (UdrConfig . Configuration . WebuiUri )
64
67
ConfigUpdateDbTrigger = make (chan * UpdateDb , 10 )
65
68
go UdrConfig .updateConfig (commChannel , ConfigUpdateDbTrigger )
66
69
} else {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ require (
8
8
github.com/gin-gonic/gin v1.9.1
9
9
github.com/google/uuid v1.6.0
10
10
github.com/mitchellh/mapstructure v1.5.0
11
- github.com/omec-project/config5g v1.3.0
11
+ github.com/omec-project/config5g v1.3.1
12
12
github.com/omec-project/http2_util v1.2.0
13
13
github.com/omec-project/logger_util v1.2.0
14
14
github.com/omec-project/openapi v1.2.0
Original file line number Diff line number Diff line change @@ -81,8 +81,8 @@ github.com/montanaflynn/stats v0.6.6 h1:Duep6KMIDpY4Yo11iFsvyqJDyfzLF9+sndUKT+v6
81
81
github.com/montanaflynn/stats v0.6.6 /go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow =
82
82
github.com/nbio/st v0.0.0-20140626010706-e9e8d9816f32 h1:W6apQkHrMkS0Muv8G/TipAy/FJl/rCYT0+EuS8+Z0z4 =
83
83
github.com/nbio/st v0.0.0-20140626010706-e9e8d9816f32 /go.mod h1:9wM+0iRr9ahx58uYLpLIr5fm8diHn0JbqRycJi6w0Ms =
84
- github.com/omec-project/config5g v1.3.0 h1:e/oMZlQsef8bOpHT56uAMKIag3epCOW0jpmyadFC+30 =
85
- github.com/omec-project/config5g v1.3.0 /go.mod h1:h6eaDdWEY7432L9rZAg1Za6HrvFvDWRNolAn5GK/5No =
84
+ github.com/omec-project/config5g v1.3.1 h1:hSvFHXh/J0mslsWR82PPnmpF0WzkmLa6AOdvEPve9e8 =
85
+ github.com/omec-project/config5g v1.3.1 /go.mod h1:lN/Jc2BZkE/smOGPCXxeo1dJ7s+s9Wgp34crNLH4YeE =
86
86
github.com/omec-project/http2_util v1.2.0 h1:ggQ1GjY2x6VRpKuRhZj0t9dh6eISY6LRBv4rlMD++8s =
87
87
github.com/omec-project/http2_util v1.2.0 /go.mod h1:KLgvU3o7qmG/i5XO/qITscFql2tWCAmjE6glX+dxe7M =
88
88
github.com/omec-project/logger_conf v1.1.1 h1:qo0cF5gnPfth8wy+I/QjiOx+F5jB6h4GLSOdyS+ted8 =
You can’t perform that action at this time.
0 commit comments