aaheiev opened a new issue, #4716:
URL: https://github.com/apache/camel-k/issues/4716

   ### What happened?
   
   Have 2 simple integrations
   
   hello.groovy
   ```groovy
   from('timer:tick?period=3000')
           .setBody().constant('Hello world from Camel K!')
           .to('log:info')
   ```
   
   HttpTest.java
   ```java
   package com.backbase.gc.mambu;
   import org.apache.camel.builder.RouteBuilder;
   @SuppressWarnings("unused")
   public class HttpTest extends RouteBuilder {
       @Override
       public void configure() {
           from("rest://get:/test")
                   .setBody().simple("Hello world from test at 
${date:now:yyyy-MM-dd HH:mm:ss.SSS}")
                   .log("${body}")
           ;
       }
   }
   ```
   
   If I install Camel-K using cli:
   ```shell
   kamel install -n camel-k --force --olm=false \
     --global \
     --organization ecosystemsgctmp \
     --registry ecosystemsgctmp.azurecr.io \
     --registry-secret camel-k-registry-secret \
     --wait
   ```
   everything work.
   
   If I use helm to install Camel-K operator:
   
   ```shell
   helm -n camel-k upgrade --install -f camel-k.values.yaml \
     --repo https://apache.github.io/camel-k/charts \
     camel-k \
     camel-k \
     --version 2.0.1 --wait
   ```
   camel-k.values.yaml
   ```yaml
   ---
   operator:
     global: "true"
   platform:
     build:
       registry:
         organization: ecosystemsgctmp
         address: ecosystemsgctmp.azurecr.io
         secret: camel-k-registry-secret
   ```
   
   ### Steps to reproduce
   
   - Kubernetes cluster: AKS v1.26.6
   - istio, istio-gateway: 1.18.2
   - knative: v1.11
   
   ### Install Camel-K operator using following command
   
   ```shell
   helm -n camel-k upgrade --install -f camel-k.values.yaml \
     --repo https://apache.github.io/camel-k/charts \
     camel-k \
     camel-k \
     --version 2.0.1 --wait
   ```
   camel-k.values.yaml
   ```yaml
   ---
   operator:
     global: "true"
   platform:
     build:
       registry:
         organization: ecosystemsgctmp
         address: ecosystemsgctmp.azurecr.io
         secret: camel-k-registry-secret
   ```
   
   ### Run integraion
   
   HttpTest.java
   ```java
   package com.backbase.gc.mambu;
   import org.apache.camel.builder.RouteBuilder;
   @SuppressWarnings("unused")
   public class HttpTest extends RouteBuilder {
       @Override
       public void configure() {
           from("rest://get:/test")
                   .setBody().simple("Hello world from test at 
${date:now:yyyy-MM-dd HH:mm:ss.SSS}")
                   .log("${body}")
           ;
       }
   }
   ```
   with command:
   ```shell
   kamel run --trait knative-service.min-scale=1 HttpTest.java
   ```
   
   
   
   ### Relevant log output
   
   ```shell
   
{"level":"info","ts":1693918064.4193337,"logger":"camel-k.traits","msg":"Skipping
 environment variable POD_NAME (fieldRef)","trait":"container"}
   {"level":"error","ts":1693918064.4319084,"msg":"Reconciler 
error","controller":"integration-controller","controllerGroup":"camel.apache.org","controllerKind":"Integration","Integration":{"name":"http-test","namespace":"default"},"namespace":"default","name":"http-test","reconcileID":"5349f143-288d-4f01-8df0-ee61fb41c5c0","error":"error
 executing post actions: error during apply resource: default/http-test: 
services.serving.knative.dev \"http-test\" is forbidden: User 
\"system:serviceaccount:camel-k:camel-k-operator\" cannot patch resource 
\"services\" in API group \"serving.knative.dev\" in the namespace \"default\": 
RBAC: clusterrole.rbac.authorization.k8s.io \"addressable-resolver\" not 
found","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:326\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/c
 
ontroller-runtime@v0.13.1/pkg/internal/controller/controller.go:273\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.13.1/pkg/internal/controller/controller.go:234"}
   ```
   ```
   
   
   ### Camel K version
   
   v2.0.1


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org.apache.org

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

Reply via email to