dpalinic opened a new issue, #1125:
URL: https://github.com/apache/camel-karavan/issues/1125

   **How to reproduce:**
   
   1. Create new integration
   2. Create bean and load some value using the Kubernetes Secrets modal
   3. Run integration
   4. Observe issue below
   
   **Issue:**
   `Caused by: io.fabric8.kubernetes.client.KubernetesClientException: Failure 
executing: GET at: 
https://10.43.0.1:443/api/v1/namespaces/dev/secrets/dev-postgresql. Message: 
secrets "dev-postgresql" is forbidden: User "system:serviceaccount:dev:default" 
cannot get resource "secrets" in API group "" in the namespace "dev". Received 
status: Status(apiVersion=v1, code=403, details=StatusDetails(causes=[], 
group=null, kind=secrets, name=dev-postgresql, retryAfterSeconds=null, 
uid=null, additionalProperties={}), kind=Status, message=secrets 
"dev-postgresql" is forbidden: User "system:serviceaccount:dev:default" cannot 
get resource "secrets" in API group "" in the namespace "dev", 
metadata=ListMeta(_continue=null, remainingItemCount=null, 
resourceVersion=null, selfLink=null, additionalProperties={}), 
reason=Forbidden, status=Failure, additionalProperties={}).`
   
   **Notes:**
   It looks like ServiceAccount is set to default instead of karavan. We found 
file in which serviceAccount is defined, but we're not sure if it's anywhere 
applied. Might be related to that?
   
   File:
   karavan-web/karavan-app/src/main/resources/snippets/deployment.jkube.yaml
   
   **Bean example:**
   
   `- beans:
       - constructors: {}
         name: PostgresqlDeadletterDataSource
         properties:
           url: jdbc:postgresql://dev-postgresql.dev.svc.cluster.local:5432/smh
           username: '{{secret:dev-postgresql-username/username}}'
           password: '{{secret:dev-postgresql/password}}'
           driverClassName: org.postgresql.Driver
         type: org.apache.commons.dbcp2.BasicDataSource`
   
   
   
   


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