Skip to content

Commit

Permalink
docs: add example
Browse files Browse the repository at this point in the history
Signed-off-by: Shardul Srivastava <[email protected]>
  • Loading branch information
shardulsrivastava committed Jan 28, 2023
1 parent 83337c3 commit a393c96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions functions-runtime/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,9 @@ docker run -e SCRIPT=https://raw.githubusercontent.com/keptn/lifecycle-toolkit/m
docker run -e SCRIPT=https://raw.githubusercontent.com/keptn/lifecycle-toolkit/main/functions-runtime/samples/ts/slack.ts -e SECURE_DATA='{ "slack_hook":"hook/parts","text":"this is my test message" }' -it keptnsandbox/klc-runtime:${VERSION}
```

### Docker with function and external secure data - prometheus
```
docker run -e SCRIPT=https://raw.githubusercontent.com/keptn/lifecycle-toolkit/main/functions-runtime/samples/ts/prometheus.ts -e DATA='{ "url":"http://localhost:9090", "metrics": "up{service=\"kubernetes\"}", "expected_value": "1" }' -it keptnsandbox/klc-runtime:${VERSION}
```

<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=858843d8-8da2-4ce5-a325-e5321c770a78" />

0 comments on commit a393c96

Please sign in to comment.