Skip to content

Commit 4c22507

Browse files
committed
use []hub urls instead of one url
1 parent 0cce6e8 commit 4c22507

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pkg/environment/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type Config struct {
4040
GeoipURLs []string `json:"geoip_urls"`
4141

4242
HubURL []string `json:"hub_url"`
43-
V4HubURL string `json:"v4_hub_url"`
43+
V4HubURL []string `json:"v4_hub_url"`
4444

4545
// we should not be supporting flist url or hub storage from zos-config until we can update them on runtime
4646
// FlistURL string `json:"flist_url"`

pkg/environment/environment.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ type Environment struct {
7575
GeoipURLs []string
7676
KycURL string
7777
RegistrarURL string
78-
HubURL string
7978

8079
// private vlan to join
8180
// if set, zos will use this as its priv vlan
@@ -368,7 +367,7 @@ func getEnvironmentFromParams(params kernel.Params) (Environment, error) {
368367
env.GeoipURLs = geoip
369368
}
370369

371-
// flist url and hub urls shouldn't listen to changes in config as long as we can't change it at run time.
370+
// flist url and hub storage urls shouldn't listen to changes in config as long as we can't change it at run time.
372371
// it would cause breakage in vmd that needs a reboot to be recovered.
373372
// if flist := config.FlistURL; len(flist) > 0 {
374373
// env.FlistURL = flist[0]

0 commit comments

Comments
 (0)