-
Notifications
You must be signed in to change notification settings - Fork 345
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
Error: unknown flag: --trait on local build #2776
Comments
Note that the dry-run (cf:#2769)
apiVersion: camel.apache.org/v1
kind: Integration
metadata:
creationTimestamp: null
name: integration-file
namespace: default
spec:
sources:
- content: |
// camel-k: language=java
// camel-k: trait=container.enabled=true
// camel-k: trait=container.image=localhost:5000/camelk_test:latest
import org.apache.camel.builder.RouteBuilder;
public class IntegrationFile extends RouteBuilder {
@Override
public void configure() throws Exception {
// Write your routes here, for example:
from("timer:java?period=1000")
.routeId("java")
.setBody()
.simple("Hello Camel K from ${routeId}")
.to("log:info");
}
}
name: IntegrationFile.java
traits:
container:
configuration:
enabled: true
image: localhost:5000/camelk_test:latest
status: {} |
The Trait feature is something mainly thought to tune your integration on a Kubernetes platform, reason why it's not present in the |
Duplicate of #2499 |
Let me close this in favour of #2499 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As per #2769 I am trying to build a local integration image and use it in for my integration manifest.
I have the following IntegrationFile.java simple java DSL example with modelines:
But it fails to local build
kamel local build IntegrationFile.java
with the following error reportedThe text was updated successfully, but these errors were encountered: