-
Notifications
You must be signed in to change notification settings - Fork 353
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
fix(kamel log): Use integration name for looking up containers #348
Conversation
@rhuss seems ok, did you test against knative ? |
pkg/util/log/annotation_scraper.go
Outdated
labelSelector string | ||
podScrapers sync.Map | ||
counter uint64 | ||
} | ||
|
||
// NewSelectorScraper creates a new SelectorScraper | ||
func NewSelectorScraper(client kubernetes.Interface, namespace string, labelSelector string) *SelectorScraper { | ||
func NewSelectorScraper(client kubernetes.Interface, namespace string, integrationName string, labelSelector string) *SelectorScraper { |
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.
if possible I would not use the name integration in this package
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.
Ok, what's about defaultContainerName
?
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.
fine with me
Yes, I have knative installed locally in minikube. |
Le me fix the build issue. |
can you squash the commits ? |
5426ac3
to
d6447fa
Compare
@lburgazzoli not sure about the build error. Seems to be unrelated to this PR ? |
Use integration name for looking up containers as a fallback if no container could be found. If no container could be identified even with the integration name, use the first container for the log, assuming its the "main" container. Fixes apache#347
looks like you need to rebase from master |
d6447fa
to
52fbe11
Compare
Use integration name for looking up containers as a fallback if no
container could be found.
If no container could be identified even with the integration name,
use the first container for the log, assuming its the "main" container.
Fixes #347