lburgazzoli commented on a change in pull request #87: kamel install with sample
URL: https://github.com/apache/camel-k/pull/87#discussion_r218359233
##########
File path: pkg/install/operator.go
##########
@@ -45,6 +45,13 @@ func PlatformContexts(namespace string) error {
)
}
+// Example --
+func Example(namespace string) error {
+ return installResources(namespace,
+ "cr.yaml",
Review comment:
Here an example of the latest spec:
```yaml
apiVersion: camel.apache.org/v1alpha1
kind: Integration
metadata:
name: gtest
spec:
source:
content: |-
//
// To run this integrations use:
//
// kamel run -d camel:groovy runtime/examples/routes.groovy
//
rnd = new Random()
from('timer:groovy?period=1s')
.routeId('groovy')
.setBody()
.constant('Hello Camel K!')
.process {
it.in.headers['RandomValue'] = rnd.nextInt()
}
.to('log:info?showHeaders=true')
name: routes.groovy
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services