Triggers
Triggers within the Workspace section empowers you to set precise conditions and actions, automating responses to various events or data changes. By defining trigger rules, you can ensure that your automation processes are not only efficient but also responsive to real-time events.
This feature simplifies the execution of tasks based on specific triggers, reducing manual intervention and enhancing overall efficiency.
Triggers in Kubeark are powerful components that initiate the execution of one or multiple workflows based on specific conditions. A trigger can be considered active when it is enabled and the output of its associated Expression evaluates to True. Once a trigger is activated by a designated source, such as an event or a predefined condition, it initiates the processing of workflows.
Triggers serve as the catalyst for workflow execution, ensuring that the defined automation processes are triggered at the right time and in response to the relevant events or conditions. By enabling and configuring triggers, users can define the precise circumstances under which workflows should be started.
The activation of a trigger results in the processing of workflows that are associated with it. This allows for the execution of a series of tasks or actions defined within the workflows, enabling automation and orchestration of complex processes. Triggers can start a single workflow or multiple workflows simultaneously, depending on the configuration and requirements set by the user.
Within the main Triggers menu, you will find a couple of options to help you filter by workspace and configure your triggers accordingly.
- Workspace filter: in the right upper corner you will find a dropdown that allows you to select the desired workspace for further configuration
- Triggers and Sources: on the left upper corner you will find two submenus allowing you to enter the individual setup for triggers and for sources.
The Automation menu of the Kubeark platform interface offers a powerful set of tools and features designed to streamline and simplify various tasks within the platform. This contains three main sections: Workspace, Forms and Functions
- Workspace: A useful menu that enables you to design, visualize, and execute complex automation sequences effortlessly by configuring Workflows, Triggers, Cron Jobs, the Vault and Logs.
- Forms: The Forms section enables the creation and customization of digital forms, making it easy to collect structured data from users within the Kubeark platform.
- Functions: Functions are code snippets or scripts that can be triggered to perform specific actions or tasks within Kubeark
The Triggers submenu within Workspace allows you to set precise conditions and actions, automating responses to various events or data changes. By defining trigger rules, you can ensure that your automation processes are not only efficient but also responsive to real-time events.
- Make sure you have selected the correct workspace from the upper right dropdown
- Select the Triggers tab on the upper left corner
- To create a new trigger, click on the "Add Trigger" button. A new window will appear, allowing you to configure the trigger's settings
- A new window appears where you will need to configure the trigger arguments as follows:
Argument | Description |
---|---|
Name | Assign a unique and meaningful name to your trigger. This helps you easily identify and manage it within your workspace. |
Description | Provide a brief yet informative description of your trigger. This serves as a quick reference to understand the trigger's purpose and functionality |
Owner | Specify the owner of the trigger. This is essential for accountability and ensuring that the right team member is responsible for the trigger's management |
Source | Define the source of the trigger. This identifies where the trigger is initiated or triggered from, providing context for its actions *Please refer to the Sources section |
Tags | Add relevant tags to categorize and organize your triggers. Tags simplify the process of searching and managing triggers, especially in larger automation projects |
Active | Toggle the trigger's active status |
Workflows | Select the workflows associated with this trigger. |
Expression | Craft an expression that outlines the precise conditions triggering the automation. |
The Expression Builder in Kubeark is a specialized tool designed to facilitate the creation and management of events within the system. It allows users to define, customize, and automate responses to various system or user activities.
The Expression Builder in Kubeark includes a range of Kubeark predefined events, meticulously crafted based on the most common use cases and our extensive experience, ensuring smooth and relevant experience for the users.
Its primary purpose is to enable users to create specific "events" that act as triggers for certain actions within the Kubeark platform. An event in this context refers to a specific occurrence or a set of conditions being met within the platform.
Within the Expression Builder, select the "Add Predefined Event" option. This opens up a list of predefined Kubeark events. A complete list of predefined events that you can use can be found below:
Category | Events |
---|---|
Workflow Events: Include triggers for creation, update, deletion, publication, and rollback of workflows. |
|
Form Events: Typically used for actions triggered by form submissions |
|
Deployment Events: Cover a range of deployment-related triggers, including creation, enabling/disabling, deletion, and status updates. Reference: Deployments (Kubernetes) |
|
Template Events: Relate to the creation, deletion, and other changes in templates. Reference: Templates (Kubernetes) |
|
Cluster Events: Include additions, updates, and deletions of clusters. Reference: Clusters |
|
K8s Events: Encompass actions within Kubernetes, such as namespace deletion or resource updates. Reference: Kubernetes |
|
Infra Deployment Events: Focus on infrastructure deployment actions like creation, updates, and provisioning. Reference: Deployments (Infrastructure) |
|
Infra Template Events: Involve creation, updates, and deletion of infrastructure templates. Reference: Templates (Infrastructure) |
|
A source, in the context of Kubeark, acts as an entry point for real-time data and events, enabling your automation processes to react swiftly to changes, updates, or notifications originating from a wide array of platforms and services.
In Kubeark, the 'Sources' submenu under the Triggers page is a key component that allows users to configure various external services and platforms as sources for triggering events within the Kubeark environment. This feature enables the integration of a wide range of external systems and services, making it possible to create responsive and dynamic workflows that react to changes or events occurring outside the Kubeark platform. By configuring these sources, users can leverage external data and events to automate processes, enhance operational efficiency, and create a more interconnected system.
- Go to the Automation Menu > Workspace > Triggers and select the Sources tab
- Click on "Add Source"
- Configure the Source arguments, as follows:
Argument | Description |
---|---|
Name | Assign a unique and meaningful name to your Source. This helps you easily identify and manage it within your workspace. |
Description | Provide a brief yet informative description of your Source. This serves as a quick reference to understand its purpose and functionality |
Owner | Specify the owner of the configured Source. This is essential for accountability and ensuring that the right team member is responsible for managing it |
Tags | Add relevant tags to categorize and organize your triggers. Tags simplify the process of searching and managing triggers, especially in larger automation projects |
Active | Toggle the trigger's active status |
Source Type | Select from a list of various external services
|
When selecting a source from the list in the 'Sources' submenu, be aware that each source will present a unique set of arguments tailored to its specific connection requirements. For instance, if you choose "AWS SQS" as your source, you will need to configure arguments pertinent to AWS integration. These may include AWS credentials, Access Key ID, Secret Access Key, Queue Name, and AWS Region, among others. It's essential to carefully fill in these details to ensure a seamless and secure connection between Kubeark and the selected external source.