Skip to content
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

Merged
merged 1 commit into from
Jun 6, 2024
Merged

Conversation

jortel
Copy link
Contributor

@jortel jortel commented Mar 21, 2024

@jortel jortel marked this pull request as ready for review March 29, 2024 13:22
@jortel jortel requested a review from mansam May 30, 2024 20:17
@@ -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) {
Copy link
Contributor Author

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")
Copy link
Contributor Author

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)
Copy link
Contributor Author

@jortel jortel May 30, 2024

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.
Copy link
Contributor Author

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(
Copy link
Contributor Author

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
Copy link
Contributor Author

@jortel jortel May 30, 2024

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.

Copy link
Contributor

@mansam mansam left a 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants