-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Support multi-container Providers. #79
Conversation
@@ -59,6 +59,9 @@ func (b *Deps) read() (input []output.DepsFlatItem, err error) { | |||
input = []output.DepsFlatItem{} | |||
f, err := os.Open(b.Path) | |||
if err != nil { | |||
if os.IsNotExist(err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hint: some providers do not report deps.
cmd/analyzer.go
Outdated
@@ -17,7 +17,7 @@ type Analyzer struct { | |||
// Run analyzer. | |||
func (r *Analyzer) Run() (b *builder.Issues, err error) { | |||
output := path.Join(Dir, "report.yaml") | |||
cmd := command.New("/usr/bin/konveyor-analyzer") | |||
cmd := command.New("/usr/local/bin/konveyor-analyzer") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hint: compat with latest analyzer.
if err != nil { | ||
return | ||
} | ||
addon.Attach(f) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hint: Attach settings for cleaner activity log.
return | ||
} | ||
|
||
// AppendExtensions adds extension fragments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hint: main magic here for aggregating the provider init configs.
p.Proxy = &provider.Proxy{ | ||
HTTPProxy: http, | ||
HTTPSProxy: https, | ||
NoProxy: strings.Join( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hint: newer method for passing proxies to providers.
namespace: konveyor-tackle | ||
name: analyzer | ||
spec: | ||
priority: 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hint: The default priority is 0. priority 10 here assumes discovery (and other system initiated) tasks will be 0 and all user initiated tasks would be 10 leaving a little room for priorities in between.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, pending the go.mod fixup
Signed-off-by: Jeff Ortel <jortel@redhat.com>
ref: konveyor/tackle2-hub#599