[
https://issues.apache.org/jira/browse/CAMEL-21238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17882988#comment-17882988
]
Christoph Deppisch commented on CAMEL-21238:
--------------------------------------------
When a source file changes it will rerun the project export, rebuild the
container image and redeploy the application to Kubernetes. In your case the
file changes should have been triggered the export. If it is not this is a bug.
When you are running on MacOS the file change listener is known to be less
performant and more unreliable compared to running on other operating systems.
The rationale behind this is the same as local --dev mode. You do not need to
manually stop and remove the deployment and you do not manually have to call
the Camel JBang commands to re-export. It saves you some commands. Also, doing
the re-export and doing a full redeploy has been the first simple approach. We
could think of uploading the changed files to the running container and skip
the re-export and re-deployment which also would be much faster. This needs to
be explored and refined though.
Do you folks really think that there is no benefit from --dev mode when
connected to Kubernetes?
> camel-jbang - k8s run - Reloading project does not change route behaviour
> -------------------------------------------------------------------------
>
> Key: CAMEL-21238
> URL: https://issues.apache.org/jira/browse/CAMEL-21238
> Project: Camel
> Issue Type: Bug
> Components: camel-jbang
> Reporter: Thomas Diesler
> Assignee: Thomas Diesler
> Priority: Major
> Fix For: 4.9.0
>
>
> When running a project with `--dev` like this ...
> {code}
> jbang camel kubernetes run timer-log-route.yaml --logs --dev \
> --gav=examples:timer-log:1.0.0 \
> --trait container.imagePullPolicy=IfNotPresent \
> --trait service.type=NodePort \
> --runtime=quarkus
> {code}
> I see ...
> {code}
> Reloading project due to file change: timer-log-route.yaml
> {code}
> without image re-build/deploy
--
This message was sent by Atlassian Jira
(v8.20.10#820010)