Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntegrationKit creation based on YAML file fails #3033

Closed
catshout opened this issue Feb 23, 2022 · 1 comment
Closed

IntegrationKit creation based on YAML file fails #3033

catshout opened this issue Feb 23, 2022 · 1 comment

Comments

@catshout
Copy link

I did create an IntegrationKit with the following command

The build was flagged as ready some time later and I could reference it for Integration creation. (Idea behind is to have a named set of IntegrationKits that can be re-used for Integrations of the same type.

At next I tried the same with kubectl and a YAML file integrationkit.yaml

kubectl apply -f integrationkit.yaml
apiVersion: camel.apache.org/v1
kind: IntegrationKit
metadata:
  labels:
    camel.apache.org/kit.type: user
  name: test-kit
  namespace: integration-dev
spec:
  dependencies:
    - mvn:org.apache.camel.k:camel-k-runtime
    - mvn:org.apache.camel.quarkus:camel-quarkus-java-joor-dsl
    - camel-log
    - camel-timer

The build finally fails with an error

kubectl logs -f integrationkits.camel.apache.org/test-kit
error: no kind "IntegrationKit" is registered for version "camel.apache.org/v1" in scheme "k8s.io/kubectl/pkg/scheme/scheme.go:28"

Any idea what's missing here?

@catshout
Copy link
Author

Found it after the detailed log check .. the YAML must contain full maven paths

apiVersion: camel.apache.org/v1
kind: IntegrationKit
metadata:
  labels:
    camel.apache.org/kit.type: user
  name: test-kit
  namespace: integration-dev
spec:
  dependencies:
    - mvn:org.apache.camel.k:camel-k-runtime
    - mvn:org.apache.camel.quarkus:camel-quarkus-java-joor-dsl
    - mvn:org.apache.camel.camel-log
    - mvn:org.apache.camel.camel-timer

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

No branches or pull requests

1 participant