You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to pause and start Integrations by scaling the replicas to 0 and 1. When scaling integrations using kubectl scale, Kamelet ConfigMaps are removed. This breaks the integration.
timed-logger.yaml Integration:
- from:
uri: "timer:tick?period=15s"steps:
- to: "kamelet:logger?message=hello"
{"level":"info","ts":1618387208.49495,"logger":"camel-k.trait","msg":"Apply trait: init"}
{"level":"info","ts":1618387208.4978032,"logger":"camel-k.trait","msg":"Apply trait: camel"}
{"level":"error","ts":1618387208.5083137,"logger":"controller","msg":"Reconciler error","controller":"integration-controller","name":"timed-logger","namespace":"default","error":"error during trait customization: ConfigMap \"timed-logger-kamelet-logger-flow\" not found",
EDIT: as requested, the application.properties of the integration:
camel.k.sources[0].language=yaml
camel.k.sources[1].location=file:/etc/camel/sources/i-source-001/logger.yaml
camel.k.sources[1].name=logger
camel.k.sources[1].property-names[0]=message
camel.k.sources[1].type=template
camel.k.sources[1].language=yaml
camel.k.sources[0].location=file:/etc/camel/sources/i-source-000/camel-k-embedded-flow.yaml
camel.k.sources[0].name=camel-k-embedded-flow
The text was updated successfully, but these errors were encountered:
@squakez thanks. I suspect the ConfigMap may only be added to the initialisation phase, and when the integration, in running phase, gets updated, the GC trait assumes the ConfigMap is not needed and deletes it. If that assumption is correct, the ConfigMap should also be added to the integration resources in the running phase.
squakez
added a commit
to squakez/camel-k
that referenced
this issue
Apr 15, 2021
I want to pause and start Integrations by scaling the replicas to 0 and 1. When scaling integrations using
kubectl scale
, Kamelet ConfigMaps are removed. This breaks the integration.timed-logger.yaml
Integration:logger
Kamelet:Steps to reproduce:
kamel run timed-logger.yaml
.ConfigMaps
kubectl scale it timed-logger --replicas 0
ConfigMaps:
(
timed-logger-kamelet-logger-flow
is deleted)Scaling the integration to 2 results in the same behavior, the Kamelet ConfigMap is removed.
kubectl scale it timed-logger --replicas 1
ConfigMaps:
Log of the
camel-k-operator
:EDIT: as requested, the
application.properties
of the integration:camel.k.sources[0].language=yaml
camel.k.sources[1].location=file:/etc/camel/sources/i-source-001/logger.yaml
camel.k.sources[1].name=logger
camel.k.sources[1].property-names[0]=message
camel.k.sources[1].type=template
camel.k.sources[1].language=yaml
camel.k.sources[0].location=file:/etc/camel/sources/i-source-000/camel-k-embedded-flow.yaml
camel.k.sources[0].name=camel-k-embedded-flow
The text was updated successfully, but these errors were encountered: