-
Notifications
You must be signed in to change notification settings - Fork 345
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
Container trait : setting container.name
result in wrong integration condition type Ready
#3941
Comments
Good catch! Yes, it shouldn't be hardcoded there. Probably the only way to get the designated container name is to get it from the Integration's |
gansheer
added a commit
to gansheer/camel-k
that referenced
this issue
Dec 21, 2022
* Use `container.name` value if defined, else default to "integration" on condition status monitoring code Fixes apache#3941
gansheer
added a commit
to gansheer/camel-k
that referenced
this issue
Dec 21, 2022
* Use `container.name` value if defined, else default to "integration" on condition status monitoring code Fixes apache#3941
gansheer
added a commit
to gansheer/camel-k
that referenced
this issue
Dec 21, 2022
* Use `container.name` value if defined, else default to "integration" on condition status monitoring code Fixes apache#3941
tadayosi
pushed a commit
that referenced
this issue
Dec 22, 2022
* Use `container.name` value if defined, else default to "integration" on condition status monitoring code Fixes #3941
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Version of camel k client : main (commit 45c2205)
Kubernetes : minikube 1.27.1
Description
I was writing some e2e test on container trait that had a strange behavior on condition status checking.
Using a different Container trait value for
container.name
than the defaultintegration
results in an error in the monitoring of status in the integration object.To reproduce the problem:
The code that results in this error is the following :
camel-k/pkg/controller/integration/monitor.go
Lines 410 to 415 in 67aad9b
The container name filter is the hardcoded "integration" value.
The only other way I see that could allow to filter "integration pods" would be to filter by the presence of metadata's label "camel.apache.org/integration" in the pod description.
@squakez @tadayosi do you see another way ?
The text was updated successfully, but these errors were encountered: