You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "marteloudini (via GitHub)" <gi...@apache.org> on 2025/09/04 13:02:56 UTC
[I] Kind:Pipe metadata->annotations->trait.camel.apache.org/mount.configs (configmap and secret) here not take in run. [camel-k]
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: commits-unsubscribe@camel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Kind:Pipe metadata->annotations->trait.camel.apache.org/mount.configs (configmap and secret) here not take in run. [camel-k]
Posted by "marteloudini (via GitHub)" <gi...@apache.org>.
marteloudini closed issue #6266: Kind:Pipe metadata->annotations->trait.camel.apache.org/mount.configs (configmap and secret) here not take in run.
URL: https://github.com/apache/camel-k/issues/6266
--
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-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Kind:Pipe metadata->annotations->trait.camel.apache.org/mount.configs (configmap and secret) here not take in run. [camel-k]
Posted by "marteloudini (via GitHub)" <gi...@apache.org>.
marteloudini commented on issue #6266:
URL: https://github.com/apache/camel-k/issues/6266#issuecomment-3257155736
you use in the tests only one element, never more... i what know the wrong syntaxe for many.
Thanks
--
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-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Kind:Pipe metadata->annotations->trait.camel.apache.org/mount.configs (configmap and secret) here not take in run. [camel-k]
Posted by "marteloudini (via GitHub)" <gi...@apache.org>.
marteloudini commented on issue #6266:
URL: https://github.com/apache/camel-k/issues/6266#issuecomment-3264896279
> Yeah, arrays configuration is a bit tricky. See https://camel.apache.org/camel-k/next/pipes/pipes.html#_traits_configuration have a look at the note, you need to provide the value as `"[\"opt1\", \"opt2\", …]"`. In v3 we'll be working to some easier mechanism to include configuration in Pipe as well.
oookkkk, haaaaaa..
i will try this.
thanks
--
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-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Kind:Pipe metadata->annotations->trait.camel.apache.org/mount.configs (configmap and secret) here not take in run. [camel-k]
Posted by "marteloudini (via GitHub)" <gi...@apache.org>.
marteloudini commented on issue #6266:
URL: https://github.com/apache/camel-k/issues/6266#issuecomment-3257153330
i have try the annotation :
**trait.camel.apache.org/mount.configs: {'configmap:postgresql-to-log-cm','secret:postgresql-to-log-sc'}**
and
**trait.camel.apache.org/mount.configs: {"configmap:postgresql-to-log-cm","secret:postgresql-to-log-sc"}**
all do in manifest yaml after camel-k operator this line
trait.camel.apache.org/mount.configs:
configmap:postgresql-to-log-cm: null
secret:postgresql-to-log-sc: null
???
--
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-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Kind:Pipe metadata->annotations->trait.camel.apache.org/mount.configs (configmap and secret) here not take in run. [camel-k]
Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #6266:
URL: https://github.com/apache/camel-k/issues/6266#issuecomment-3257295419
Yeah, arrays configuration is a bit tricky. See https://camel.apache.org/camel-k/next/pipes/pipes.html#_traits_configuration have a look at the note, you need to provide the value as `"[\"opt1\", \"opt2\", …]"`. In v3 we'll be working to some easier mechanism to include configuration in Pipe as well.
--
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-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org