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

   ### What happened?
   
   Trait `container.port` expect an integer value. When set via modeline config 
the value is set as a String. 
   
   This results in `error during trait customization: json: cannot unmarshal 
string into Go struct field containerTrait.port of type int`.
   
   ### Modeline instruction
   ```
   // camel-k: trait=container.port=8443
   ```
   
   ### integration.yaml
   ```yaml
     traits:
       container:
         configuration:
           port: "8443"
   ```
   
   See 
https://github.com/apache/camel-k-examples/blob/main/generic-examples/http/PlatformHttpsServer.java
 as an example.
   
   ### Steps to reproduce
   
   1. Run the PlatformHttpsServer.java integration
   2. See the error in the integration status due to container.port trait 
string to int conversion error
   
   ### Relevant log output
   
   _No response_
   
   ### Camel K version
   
   2.3.3


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