marteloudini opened a new issue, #6266:
URL: https://github.com/apache/camel-k/issues/6266
### What happened?
hey,
when i want create pipe on openshift, and this pipe use one configMap AND
one secret.
i follow and read the code of Trait.go (for configmap or secret only)
but nothing is used.
in my case is pipe to read postgresql database simple SELECT, and im obliged
to configure : serverName, serverPort, etc... ok
All i put on configMap, and only username and password into a secret.
### Steps to reproduce
1. in my secret :
`data:
camel.kamelet.postgresql-source.password: erfgegegevgegegeEfgzrzrzrzev3ez
camel.kamelet.postgresql-source.username: aGlesd5=
type: Opaque
`
2. in my configMap:
`data:
application.properties: |
camel.kamelet.postgresql-source.databaseName=dd
camel.kamelet.postgresql-source.delay=10000
camel.kamelet.postgresql-source.query="SELECT * FROM ttt WHERE ff=
'ez'"
camel.kamelet.postgresql-source.serverName=100.124.93.222
camel.kamelet.postgresql-source.serverPort=5432
`
3. in my pipe:
`
metadata:
annotations:
trait.camel.apache.org/mount.configs:
['configmap:postgresql-to-log-cm','secret:postgresql-to-log-sc']
...
...
...
spec:
sink:
ref:
apiVersion: camel.apache.org/v1
kind: Kamelet
name: log-sink
source:
apiVersion: camel.apache.org/v1
kind: Kamelet
name: postgresql-source
`
### Relevant log output
```shell
when i see into log in camel-k operator i see :
Pipe version "v1" cannot be handled as a pipe: json: cannot unmarshal array
into Go struct ObjectMeta.annotations of type string
```
### Camel K version
V2.7.0
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]