Skip to content
Snippets Groups Projects
Commit 748f5cf4 authored by vito.he's avatar vito.he
Browse files

Add:registries config option in referenceConfig & serviceConfig

parent cbdf222d
No related branches found
No related tags found
No related merge requests found
......@@ -48,17 +48,20 @@ func loadRegistries(targetRegistries []string, registries map[string]*RegistryCo
var urls []*common.URL
for k, registryConf := range registries {
target := false
//if user config targetRegistries
for _, tr := range targetRegistries {
if tr == k {
target = true
break
}
}
//else if user not config targetRegistries,default load all
// if user not config targetRegistries,default load all
if len(targetRegistries) == 0 {
target = true
} else {
// else if user config targetRegistries
for _, tr := range targetRegistries {
if tr == k {
target = true
break
}
}
}
if target {
url, err := common.NewURL(
context.TODO(),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment