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

   The e2e test `TestKameletClasspathLoading` is executed, for OCP4, using a 
global operator. The test is currenty faiing with:
   ```
   Warning: IntegrationPlatform "camel-k-kamelet" not found in namespace 
"test-86c0921d-4f78-4d9b-b1c9-e1c6a7bfe180"
   Running as globally managed resource
   Integration "timer-custom-kamelet-integration" created
   === CONT  TestKameletClasspathLoading
       kamelet_test.go:65: 
           Timed out after 600.002s.
           Expected
               <v1.PodPhase>: 
           to equal
               <v1.PodPhase>: Running
   ```
   
   The clue is the warning, which occurs 
[here](https://github.com/apache/camel-k/blob/main/pkg/cmd/kamelet_add_repo.go#L85).
 Since the commands in the 
[test](https://github.com/apache/camel-k/blob/main/e2e/global/common/kamelet_test.go#L37)
 use an OperatorID, the integration platform that is installed in the namespace 
is not detected and hence the custom repo is not added. Therefore, the kamelet 
cannot be found in the custom repository and the integration fails with an 
error:
   ```
   message: 'error during trait customization: kamelets [] found, 
[timer-custom-source]
         not found in repositories: 
(Kubernetes[namespace=test-279843cc-fcf7-4daa-bcf2-509cdb46b58d],
         Kubernetes[namespace=openshift-operators], Empty[])'
       reason: InitializationFailed
       status: "False"
   ```
   
   Questions to consider:
   1. The current e2e test suite continues to execute `kamel install` even if 
there is a global operator but in that use-case skips the operator itself and 
only installs the integration platform. Should this integration platform be 
passed the OperatorID -> see 
[here](https://github.com/apache/camel-k/blob/main/e2e/support/test_support.go#L246).
 This would fix the test but is this correct and cause breakages elsewhere?
   2. Is there a bug here in that the `--add-repo` switch needs to support 
global operators?


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