fix(controller,app): break loop when app is found
arcad/emissary/pipeline/head This commit looks good
Details
arcad/emissary/pipeline/head This commit looks good
Details
This commit is contained in:
parent
21173911fb
commit
47c2546d54
|
@ -205,6 +205,7 @@ func createResolveAppURL(specs *spec.Spec) (ResolveAppURLFunc, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
appEntry = &entry
|
appEntry = &entry
|
||||||
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
if appEntry == nil {
|
if appEntry == nil {
|
||||||
|
|
|
@ -15,6 +15,12 @@ func TestCreateResolveAppURL(t *testing.T) {
|
||||||
"app.arcad.test": {
|
"app.arcad.test": {
|
||||||
Address: ":8080",
|
Address: ":8080",
|
||||||
},
|
},
|
||||||
|
"app.arcad.foo": {
|
||||||
|
Address: ":8081",
|
||||||
|
},
|
||||||
|
"app.arcad.bar": {
|
||||||
|
Address: ":8082",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Config: &spec.Config{
|
Config: &spec.Config{
|
||||||
AppURLResolving: &spec.AppURLResolving{
|
AppURLResolving: &spec.AppURLResolving{
|
||||||
|
|
Loading…
Reference in New Issue