Sign inSign up

stena/kubecheck-executor

By stena

•Updated over 7 years ago

Image
0

207

stena/kubecheck-executor repository overview

⁠kubecheck-executor

A tiny program that calls kubecheck⁠ over HTTP, analyzes the checks and invokes webhooks based on the results.

Docker Automated build Docker Build Status MicroBadger Size Docker Pulls

⁠Configuration

Environment variableDescriptionRequired
KUBECHECK_URLThe address where kubecheck is runningtrue
FAILED_WEBHOOK_URLThe webhook URL to invoke when a check failstrue
EXIT_WEBHOOK_URLThe webhook URL to invoke before the program exitstrue
FAILED_WEBHOOK_BODY_TEMPLATEThe webhook body template used for the "failed" webhook. Supports Go templates.false
EXIT_WEBHOOK_BODY_TEMPLATEThe webhook body template used for the "exit" webhook. Supports Go templating.false

⁠Webhook Body Templates

Webhooks may have a body sent along to the webhook url by specifying a body template (*_BODY_TEMPLATE). The body template supports interpolation using Go templates.

Example body template:

{{ .Name }} - {{ .Check }} : {{ .Status }}

Example rendered body:

kubecheck-executor - http-check : failed

The following are the fields that can be used in each body template.

⁠Failed webhook
FieldDescription
NameThe name of the program
CheckThe name of the check that failed
DescriptionThe description of the failed check
StatusThe status of the check
ReasonThe reason for the failed check
InputThe input for the failed check
OutputThe output of the failed check
TimestampThe timestamp of the event
⁠Exit webhook
FieldDescription
NameThe name of the program
DescriptionThe description of the event
TimestampThe timestamp of the event

Tag summary

Content type

Image

Digest

Size

2.7 MB

Last updated

over 7 years ago

docker pull stena/kubecheck-executor