Skip to main content
Testkube 2.13.0 is out! New Advanced GitHub Integration, test case level flakiness, and much more! Read More

Kubernetes Triggers

The Testkube Dashboard allows you to create and manage the Kubernetes Triggers available in your Environments.

tip

Check out the Kubernetes Event Triggers document to learn how Event Triggers work in Testkube.

Triggers are defined under an Environment and are managed from the "Kubernetes Triggers" tab in the Integrations panel:

Triggers

You will see the list of currently available triggers. Select one of these to review, update or delete.

Creating a New Trigger​

Select the Create a new trigger button to create a new Kubernetes Trigger:

Create New Trigger

tip

The wizard to create a Trigger only exposes basic Trigger configurations, for more advanced condition and action configuration you can modify the generated YAML directly in the Definition tab for your Trigger.

New Trigger Condition​

You will initially be prompted for

  • the Name of the Trigger - must be a valid Kubernetes resource name.
  • the K8s Resource kind to monitor for events.
  • the Resources Identifier for which resources to monitor, can either be a list of Kubernetes Labels or a specific resource name.
  • the Triggered events to listen for. Pick a single event, or several to fire the trigger when any of them happens.

Create New Trigger Modal 1

New Trigger Action​

Once the condition has been specified, you need to specify what action to take when the trigger occurs:

  • select the Testkube action to perform.
  • select the target Testkube Resource for the action, either by Labels or by Name.

Create New Trigger Modal 2

Trigger Settings​

Selecting a Trigger from the list of Triggers shows its Settings.

note

As with the wizard above to create a Trigger, the Settings tab only exposes basic Trigger configurations, for more advanced condition and action configuration you can modify the generated YAML directly in the Definition tab for your Trigger.

General​

The General tab allows you to modify the name of the Trigger and delete it if needed.

Trigger Settings

Trigger Condition​

Trigger Condition allows you to configure the conditions to be met for the current trigger to be called.

Trigger Condition

Trigger Action​

Trigger Action allows you to configure the action to be performed in Testkube once the conditions are met.

Trigger Action

Resource Group​

Resource Group defines the Resource Group this Trigger belongs to - Read More about Resource Groups

Trigger Resource Group

Definition​

Definition shows the underlying YAML for your Trigger, allowing you to manually configure your Trigger vs using the previous tabs.

Trigger Definition