Fix use a YAML example in OLM
@@ -35,10 +35,24 @@ metadata:
"name": "example"
},
"spec": {
- "sources": [
+ "flows": [
{
- "content": "from('timer:groovy?period=1000')\n .setBody().simple('Hello world from Camel K!')\n .to('log:info?showAll=false')",
- "name": "example.groovy"
+ "from": {
+ "uri": "timer:yaml",
+ "parameters": {
+ "period": "1000"
+ },
+ "steps": [
+ {
+ "set-body": {
+ "constant": "Hello from Camel K"
+ }
+ },
+ {
+ "to": "log:info"
+ }
+ ]
+ }
}
]
}
