From 292abcff51443cbe23ed05275144c238212efeae Mon Sep 17 00:00:00 2001 From: Vladislav Sukhin Date: Thu, 2 Nov 2023 19:42:38 +0300 Subject: [PATCH] docs: env vars --- docs/docs/articles/test-triggers.mdx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/docs/articles/test-triggers.mdx b/docs/docs/articles/test-triggers.mdx index eeadcdd084..fa63192fc2 100644 --- a/docs/docs/articles/test-triggers.mdx +++ b/docs/docs/articles/test-triggers.mdx @@ -188,6 +188,15 @@ Kubernetes API and gets notified by Kubernetes on each event on the watched reso Testkube exposes CRUD operations on test triggers in the REST API. Check out the [Open API](../openapi.md) docs for more info. +## Injected Environment Variables + +The following environment variables are automatically injected into each triggered test pod: + +WATCHER_EVENT_RESOURCE: resource type +WATCHER_EVENT_NAME: resource name +WATCHER_EVENT_NAMESPACE: resource namespace +WATCHER_EVENT_EVENT_TYPE: event type + ## Video Tutorial