You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/11/23 22:18:22 UTC
[GitHub] [camel-k] kaczyns opened a new issue #1826: Multiple knative revisions created when integration references multiple Knative channels
kaczyns opened a new issue #1826:
URL: https://github.com/apache/camel-k/issues/1826
If I have an integration with multiple lines like this:
```
.to("knative:channel/yyy")
```
I can end up with a Knative service that has an environment variable that looks like this:
```yaml
spec:
template:
spec:
containers:
env:
- name: CAMEL_KNATIVE_CONFIGURATION
value: '{"services":[{"type":"channel","name":"xxx","url":"http://xxx-kn-channel.default.svc.cluster.local","metadata":{"camel.endpoint.kind":"sink","knative.apiVersion":"messaging.knative.dev/v1","knative.kind":"Channel"}},{"type":"channel","name":"yyy","url":"http://yyy-kn-channel.default.svc.cluster.local","metadata":{"camel.endpoint.kind":"sink","knative.apiVersion":"messaging.knative.dev/v1","knative.kind":"Channel"}},{"type":"channel","name":"zzz","url":"http://zzz-kn-channel.default.svc.cluster.local","metadata":{"camel.endpoint.kind":"sink","knative.apiVersion":"messaging.knative.dev/v1","knative.kind":"Channel"}}]}'
```
Each time the camel-k operator reconciles the integration, the `CAMEL_KNATIVE_CONFIGURATION` can be re-generated, with the `services` in a different order. Knative will create a new `Revision` each time this happens, and each new `Revision` causes a new pod to start. If there are several different `services` the number of pods starting concurrently can get excessive.
This is similar to #1824 , but not as severe (at least in our testing).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-k] github-actions[bot] commented on issue #1826: Multiple knative revisions created when integration references multiple Knative channels
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #1826:
URL: https://github.com/apache/camel-k/issues/1826#issuecomment-994157697
This issue has been automatically marked as stale due to 90 days of inactivity.
It will be closed if no further activity occurs within 15 days.
If you think that’s incorrect or the issue should never stale, please simply write any comment.
Thanks for your contributions!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org