Skip to content

Conversation

@squakez
Copy link
Contributor

@squakez squakez commented Apr 5, 2025

Enable the possibility to build an Integration directly from a git repository.

With this PR the user can manage any kind of Integration which is expected as a Maven project stored in a git repository (ie, https://github.com/squakez/sample.git). The operator will take care to recover the project, building and running it. The rest of operations will happen as usual.

kamel run --git https://github.com/squakez/sample.git

which will create an Integration CR as:

apiVersion: camel.apache.org/v1
kind: Integration
metadata:
  annotations:
    camel.apache.org/operator.id: camel-k
  creationTimestamp: null
  name: sample
spec:
  git:
    url: https://github.com/squakez/sample.git

This use case enable the possibility to run any Camel runtime (quarkus, spring-boot, main). Once this is merged I'll provide more complete documentation.

Closes #4024

Release Note

feat(api): Integration git option 

Enable the possibility to build an Integration directly from a git repository.

Closes apache#4024
@github-actions
Copy link
Contributor

github-actions bot commented Apr 5, 2025

✔️ Unit test coverage report - coverage increased from 46.9% to 47.3% (+0.4%)

@gansheer gansheer self-requested a review April 7, 2025 12:54
Copy link
Contributor

@gansheer gansheer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Do you plan to add some documentation later on it ?

@squakez squakez merged commit 8a87158 into apache:main Apr 9, 2025
10 checks passed
@squakez squakez deleted the feat/4024 branch April 9, 2025 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make project generation explicit and generic

2 participants