squakez opened a new pull request, #4942:
URL: https://github.com/apache/camel-k/pull/4942
<!-- Description -->
With this PR we enable the possibility to import any Camel application
deployed on Kubernetes manually or via other tooling and be able to monitor it
as a "synthetic" Integration.
We can control the same deployment objects we are using for managed
Integrations: Deployment, CronJob and Knative Services.
It works by annotating the specific object we want to import with the
`camel.apache.org/integration=my-it` label. The operator creates a synthetic
Integration and monitor the resources after the object which created it.
```
$ k label deploy my-camel-sb-svc camel.apache.org/integration=my-it
$ k get it
NAME PHASE RUNTIME PROVIDER RUNTIME VERSION KIT REPLICAS
my-it Running
1
$ k scale deploy my-camel-sb-svc --replicas 2
$ k get it
NAME PHASE RUNTIME PROVIDER RUNTIME VERSION KIT REPLICAS
my-it Running
2
$ k delete deploy my-camel-sb-svc
deployment.apps "my-camel-sb-svc" deleted
$ k get it
NAME PHASE RUNTIME PROVIDER RUNTIME VERSION KIT
REPLICAS
my-it Application Missing
0
```
We're covering the main corner cases such as removal of the object which
generated the import or the missing selector which would not allow the
possibility to monitor the sibling pods. It's a MVP that sets the framework for
any possible future feature around monitoring.
Unit and E2E tests to follow.
<!--
Enter your extended release note in the below block. If the PR requires
additional action from users switching to the new release, include the string
"action required". If no release note is required, write "NONE".
You can (optionally) mark this PR with labels "kind/bug" or "kind/feature"
to make sure
the text is added to the right section of the release notes.
-->
**Release Note**
```release-note
feat: import external Camel applications
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]