moehajj edited a comment on issue #2205:
URL: https://github.com/apache/camel-k/issues/2205#issuecomment-818029713


   It doesn't produce a KnativeService when I add `-t 
deployer.kind=knative-service` OR `-t deployer.enabled=true -t 
deployer.kind=knative-service`.
   
   Instead I get the following:
   ```
   $ kubectl get ksvc sample-grpc-camel-route -o yaml
   Error from server (NotFound): services.serving.knative.dev 
"sample-grpc-camel-route" not found
   ```
   
   This is the generated integration:
   ```
   $ kubectl get it sample-grpc-camel-route -o yaml
   apiVersion: camel.apache.org/v1
   kind: Integration
   metadata:
     creationTimestamp: "2021-04-12T18:20:19Z"
     generation: 1
     name: sample-grpc-camel-route
     namespace: camel-k
     resourceVersion: "154519472"
     selfLink: 
/apis/camel.apache.org/v1/namespaces/camel-k/integrations/sample-grpc-camel-route
     uid: 5ab7ffd6-438c-46a2-8deb-aede4703dd12
   spec:
     dependencies:
     - mvn:com.sample.compute:compute-proto:1.0.0-SNAPSHOT
     - mvn:org.apache.camel:camel-grpc:3.9.0
     - mvn:org.apache.camel:camel-componentdsl:3.9.0
     sources:
     - content: |-
         package com.example.service.grpc;
   
         import com.google.protobuf.ByteString;
         import com.example.ExampleRequest;
         import com.example.ExampleResponse;
         import org.apache.camel.Message;
         import org.apache.camel.builder.RouteBuilder;
   
         import java.nio.charset.StandardCharsets;
   
         public class SampleGrpcCamelRoute extends RouteBuilder {
   
             @Override
             public void configure() throws Exception {
                 
fromF("grpc://localhost:9000/com.example.ExampleService?synchronous=true")
                         .process(exchange -> {
                             final Message message = exchange.getMessage();
                             final ExampleRequest request = 
message.getBody(ExampleRequest.class);
   
                             final String output = "Hello World!";
   
                             final ExampleResponse response = 
ExampleResponse.newBuilder()
                                     .setMessage(output)
                                     .build();
   
                             message.setBody(response);
                         });
             }
         }
       name: SampleGrpcCamelRoute.java
     traits:
       container:
         configuration:
           servicePort: 9000
           servicePortName: h2c
       deployer:
         configuration:
           enabled: true
           kind: knative-service
       knative:
         configuration:
           enabled: true
       knative-service:
         configuration:
           auto: true
           class: kpa.autoscaling.knative.dev
           enabled: true
           maxScale: 1
           minScale: 1
   status:
     conditions:
     - firstTruthyTime: "2021-04-12T18:20:19Z"
       lastTransitionTime: "2021-04-12T18:20:19Z"
       lastUpdateTime: "2021-04-12T18:20:19Z"
       message: camel-k
       reason: IntegrationPlatformAvailable
       status: "True"
       type: IntegrationPlatformAvailable
     - lastTransitionTime: "2021-04-12T18:20:19Z"
       lastUpdateTime: "2021-04-12T18:20:19Z"
       message: 'controller strategy: knative-service'
       reason: DeploymentAvailable
       status: "False"
       type: DeploymentAvailable
     - firstTruthyTime: "2021-04-12T18:20:19Z"
       lastTransitionTime: "2021-04-12T18:20:19Z"
       lastUpdateTime: "2021-04-12T18:20:19Z"
       message: kit-c1q88iiga9qjbbv623lg
       reason: IntegrationKitAvailable
       status: "True"
       type: IntegrationKitAvailable
     - lastTransitionTime: "2021-04-12T18:20:19Z"
       lastUpdateTime: "2021-04-12T18:20:19Z"
       message: different controller strategy used (knative-service)
       reason: CronJobNotAvailableReason
       status: "False"
       type: CronJobAvailable
     - lastTransitionTime: "2021-04-12T18:20:19Z"
       lastUpdateTime: "2021-04-12T18:20:19Z"
       status: Unknown
       type: Ready
     dependencies:
     - mvn:com.example:example-proto:1.0.0-SNAPSHOT
     - mvn:org.apache.camel.k/camel-k-loader-java
     - mvn:org.apache.camel.k/camel-k-runtime
     - mvn:org.apache.camel:camel-componentdsl:3.9.0
     - mvn:org.apache.camel:camel-grpc:3.9.0
     digest: vYn6n2SDK9WEMqnBgXWq04-W7A2t6FK6qpo34ra0ko8Y
     image: 
quay.io/verygoodsecurity/camel-k-kit-c1q88iiga9qjbbv623lg@sha256:473ee4ebb3aefe32ee22fd771a645f96471baf592e5510a7977e9e27841d8e2f
     kit: kit-c1q88iiga9qjbbv623lg
     lastInitTimestamp: "2021-04-12T18:20:19Z"
     phase: Running
     platform: camel-k
     profile: knative
     runtimeProvider: quarkus
     runtimeVersion: 1.6.0
     selector: camel.apache.org/integration=sample-grpc-camel-route
     version: 1.3.1
   ```
   
   And when I run using `--dev`, it gets stuck on:
   `Condition "Ready" is "Unknown" for Integration sample-grpc-camel-route`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to