oscerd commented on issue #3458:
URL: https://github.com/apache/camel-k/issues/3458#issuecomment-1188848321
If I go with
```
apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
name: daje-101
annotations:
trait.camel.apache.org/camel.properties:
["camel.aws.vault.accessKey=xxxx","camel.aws.vault.secretKey=yyyy","camel.aws.vault.region=region"]
trait.camel.apache.org/builder.properties:
["quarkus.camel.service.discovery.include-patterns=META-INF/services/org/apache/camel/properties-function/*"]
spec:
source:
ref:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: timer-source
properties:
period: "5000"
message: '"Invocation"'
steps:
- ref:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: http-sink
properties:
url:
"https://finnhub.io/api/v1/quote?symbol=AAPL&token={{aws:finnhub-token}}"
sink:
ref:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: log-sink
```
This will fail with
`error validating data:
[ValidationError(KameletBinding.metadata.annotations.trait.camel.apache.org/builder.properties):
invalid type for
io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta_v2.annotations: got "array",
expected "string",
ValidationError(KameletBinding.metadata.annotations.trait.camel.apache.org/camel.properties):
invalid type for
io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta_v2.annotations: got "array",
expected "string"]; if you choose to ignore these errors, turn validation off
with --validate=false`
--
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]