You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
service.log.App.Debug().Str("name", name).Msg("Found matching container by app name")
60
+
nameMatch=app
61
+
nameMatchedApps=append(nameMatchedApps, name)
60
62
}
63
+
returnfalse
61
64
}
62
65
63
-
returnnameMatch
66
+
err:=lookup(locatorFunc)
67
+
iferr!=nil {
68
+
returnnil, err
69
+
}
70
+
71
+
ifdomainMatch!=nil {
72
+
service.log.App.Debug().Str("domain", domain).Msg("Found matching app by domain")
73
+
returndomainMatch, nil
74
+
}
75
+
76
+
ifnameMatch==nil {
77
+
service.log.App.Debug().Str("domain", domain).Msg("No match found for domain, skipping")
78
+
returnnil, nil
79
+
}
80
+
81
+
iflen(nameMatchedApps) >1 {
82
+
service.log.App.Warn().Str("domain", domain).Strs("apps", nameMatchedApps).Msg("Multiple apps matched domain by name, app names must be unique, using last match")
83
+
}
84
+
85
+
service.log.App.Debug().Str("domain", domain).Msg("Found matching app by app name")
0 commit comments