Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Upgrade Camel Sources to use Camel K 0.3.3 and add complex integrations #403

Merged
merged 12 commits into from
May 17, 2019

Conversation

nicolaferraro
Copy link
Contributor

@nicolaferraro nicolaferraro commented May 8, 2019

Proposed Changes

This PR upgrades Camel sources to use Camel K 0.3.3 and adds the additional type integration to the kind of supported sources so that users are now able to use a full camel k integration as knative sources (example included of a source that polls a remote URL to get data).

Other notable changes:

  • removed management of the integration platform to leave it to Camel K installation
  • deprecating some fields to move them in a different location in the source tree

Release Note

Camel sources are now compatible with Camel K 0.3.3+ and allow to use complex Camel K integrations as Knative sources.

@knative-prow-robot knative-prow-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label May 8, 2019
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label May 8, 2019
@knative-prow-robot knative-prow-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label May 8, 2019
@knative-prow-robot
Copy link
Contributor

Hi @nicolaferraro. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@matzew
Copy link
Member

matzew commented May 8, 2019 via email

@knative-prow-robot knative-prow-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 8, 2019
@matzew
Copy link
Member

matzew commented May 10, 2019

@nicolaferraro pleae add release notes, using the release-notes format

@nicolaferraro
Copy link
Contributor Author

Should be ok now.

return p.Add(mgr, logger)
err := p.Add(mgr, logger)
if err != nil {
log.Println("Camel K cluster resources not installed correctly. Follow installation instructions at: https://github.com/apache/camel-k")
Copy link
Member

Choose a reason for hiding this comment

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

@nicolaferraro could this also be used to prevent the CrashLoop ? if the actual Camel-K bits are not yet there?

@nicolaferraro
Copy link
Contributor Author

@matzew I've added a check to avoid the crashloop and keep waiting for Camel K resources instead. That should make installation easier.

@knative-metrics-robot
Copy link

The following is the coverage report on pkg/.
Say /test pull-knative-eventing-sources-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
contrib/camel/pkg/reconciler/camelsource.go 74.1% 71.6% -2.6
contrib/camel/pkg/reconciler/resources/component.go Do not exist 85.7%
contrib/camel/pkg/reconciler/resources/integration.go 90.0% 76.0% -14.0

@matzew
Copy link
Member

matzew commented May 17, 2019

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label May 17, 2019
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: grantr, nicolaferraro

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 17, 2019
@knative-prow-robot knative-prow-robot merged commit 5b8086c into knative:master May 17, 2019
@matzew matzew mentioned this pull request Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants