Overview
The trigger function supports automatic updates to the CCSE workload that uses the image when the image edition is updated, thus simplifying the workload release process.
Before You Begin
• An instance of the Cloud Container Repository Enterprise Edition has been activated
• You have enabled a CCSE cluster
Create Trigger
1. Access the Cloud Container Repository console.
2. Click on the name of the activated Enterprise Edition instance.
3. In the left navigation pane, click Container Image - Image Repository, and select the image repository where you want to create a trigger.
4. On the Trigger tab, click the Create Trigger button.
5. Fill in the necessary parameters for the trigger on the creation page
Parameter | Description |
Trigger Name | The name of the trigger. |
Tag-Matching Conditions | Sets the image edition that the rule matches using regular expressions. Usage examples include: Match all: .* match multiple editions: v1|v2|v3 match prefixes: v1.* |
Cluster | The CCSE cluster associated with the trigger. |
Namespace | The namespace associated with the trigger. |
Workload Type | The type of workload associated with the trigger, including: stateless, stateful, daemon process, and scheduled tasks. |
Workload | The workload associated with the trigger. |
Container | The container associated with the trigger. |
Image Update Method | The method of trigger updating the container image, includes updating through Tag or Digest. When the image pull policy of the container is set to IfNotPresent, pushing an image with the same Tag will not trigger a new image pull through Tag due to the existing image cache on the CCSE node. Therefore, it is recommended to update through Digest. When the image pull policy of the container is set to Always, updating through Tag is recommended. |
6. Once created, you can view the created triggers on the list page.
7. The Edit button on the operation bar allows you to modify the trigger. The Disable / Enable button allows you to change the status of the trigger. The Delete button allows you to remove the trigger. The View Trigger Records button allows you to view the records of the trigger. Each time a newly pushed image matches the Tag condition of the trigger, a new trigger record will be added, and the image of the CCSE workload will be automatically updated.