Labels and Annotations¶
Labels and annotations are key-value pairs. CHAI™ allows you to define labels and annotations in the deployment.
Accessing Labels and Annotations¶
-
After logging into CHAI™, click on the project where you want to add labels and annotations, then click Cruize.

-
Click on the blueprint version count on the blueprint card. After clicking the count, the blueprint versions page will be displayed, which contains a list of blueprint versions.

-
Click on the View configurations kebab menu option or click on the blueprint version name to view blueprint configurations.
-
Go to the Deployments tab and click Edit deployment definition from the Action column of any deployment.
-
The deployment definition page will open. Now go to the Labels & Annotations tab as shown in the image below.

Update Labels and Annotations¶
Labels and annotations are empty by default. Click the Update button to update labels and annotations data as shown in the image below.

Labels¶
Click Add Label as shown in the image below.

Label Key Constraint¶
Keys have two segments: an optional prefix and name, separated by a slash (/).
1. Prefix Segment Constraint: - Only lowercase alphanumeric characters and periods (.) are allowed - Must start and end with an alphanumeric character - Maximum 253 characters allowed
2. Name Segment Constraint: - Only alphanumeric characters, hyphens (-), periods (.), and underscores (_) are allowed - Must start and end with an alphanumeric character - Maximum 63 characters allowed

Label Value Constraint¶
- Only alphanumeric characters, hyphens (-), periods (.), and underscores (_) are allowed
- Must start and end with an alphanumeric character
- Maximum 63 characters allowed
- Value can be empty

Annotations¶
Click Add Annotation to add annotations as shown in the image below.

Annotation Key Constraint¶
Keys have two segments: an optional prefix and name, separated by a slash (/).
1. Prefix Segment Constraint: - Only lowercase alphanumeric characters and periods (.) are allowed - Must start and end with an alphanumeric character - Maximum 253 characters allowed
2. Name Segment Constraint: - Only alphanumeric characters, hyphens (-), periods (.), and underscores (_) are allowed - Must start and end with an alphanumeric character - Maximum 63 characters allowed

Save Changes¶
Provide all details and click the Save Changes button.
