Skip to content

Cannot use custom components easily #6644

@kjq

Description

@kjq

Bug description

Basically, we have custom components that we use today in Camel (and through jBang). There are just regular components not Quarkus extensions.

They are added using the Kamel CLI as "dependencies" to the spec.

When deploying a route it appears to require that the component exists in the catalog or it cannot find it and errors out fast.

There is a whole conversation around this on Zulip @ #camel-k > How to use custom Components and Maven

As a workaround, this seems to work patching the catalog with the component

kubectl patch camelcatalog camel-catalog-quarkus-3.15.3 -n camel --type=merge -p '{
  "spec": {
    "artifacts": {
      "acme-prompt": {
        "groupId": "io.acme",
        "artifactId": "acme-workflow-components-intellect",
        "version": "1.0.0-SNAPSHOT",
        "schemes": [
          {
            "consumer": {},
            "http": false,
            "id": "acme-prompt",
            "passive": false,
            "producer": {}
          }
        ]
      }
    }
  }
}'

Per @squakez

let us know how it goes. And please, log an issue to track the request to include the feature to skip the component validation: this one could easily go in next release

Camel K or runtime version

2.10.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions