Skip to main content

Annotations and Labels used by Kargo

This page documents certain annotations and labels that are applicable to Kargo resource types and other Kubernetes resource types (e.g. Secrets or ServiceAccounts) and affect how Kargo handles those resources. The subset documented here are those that the maintainers have judged most likely to be of use to advanced users who may, for instance, be looking to interact programmatically with Kargo.

Annotations

KeyTarget Resource(s)Possible ValuesDescription
kargo.akuity.io/abortStageA plain string (verification ID from .status.verifications[*].id of the Stage).Aborts an in-progress Freight verification.
kargo.akuity.io/authorized-stageArgo CD Application<project>:<stage>Indicates which Stage is authorized to manage the Application resource.
kargo.akuity.io/colorStageHex color code (e.g. #ff8800)Optional cosmetic color used in the UI's pipeline view.
kargo.akuity.io/descriptionAnyAny stringOptional human-readable description of the resource. May be used by the Kargo UI to display additional context or details.
kargo.akuity.io/refreshWarehouse, Stage, PromotionA string that is unique or at least unlikely to repeat, such as a UUID or a timestamp of "now"Triggers reconciliation of the resource when its value changes.
kargo.akuity.io/reverifyStageEither a plain string (verification ID from .status.verifications[*].id of the Stage) or a JSON object with id (required), actor, and controlPlane fields. If a JSON object is provided, it is parsed as a VerificationRequest.Triggers re-verification of a previously completed verification for the current Freight.
rbac.kargo.akuity.io/claim.<name>ServiceAccountAny valid OIDC claim value (e.g., sub, email, or groups)Maps an OIDC claim to a ServiceAccount, enabling user-to-ServiceAccount mappings. For more details, refer to the access control sections of the Operator Guide and User Guide.
rbac.kargo.akuity.io/managedServiceAccount, Role, RoleBinding"true"Permits the UI or CLI (via the API server) to programmatically manage trios of ServiceAccount, Role, and RoleBinding resources via Kargo's own "roles" abstraction. Omit this annotation if you wish to exclusively manage these resources declaratively.

Labels

KeyTarget Resource(s)Possible ValuesDescription
kargo.akuity.io/aliasFreightAny string that is unique within the projectMutable, human-readable alias for a piece of Freight. This label is automatically synced from the resource's alias field. Users are discouraged from modifying the label directly. The label exists primarily to enable querying for Freight by alias using kubectl.
kargo.akuity.io/cred-typeSecretgit, helm, image, genericIndicates a Secret represents credentials for a repository of the specified type. For more details, see the Managing Credentials.
kargo.akuity.io/projectNamespace"true"Indicates that the Namespace is eligible for adoption by a Project with the same name. This label is useful when Namespaces are unavoidably pre-created by some other agent. For more details, see the Working with Projects section.
kargo.akuity.io/shardPromotion, Stage, WarehouseShard IDIndicates a specific controller instance responsible for reconciling the resource. For Warehouse and Stage resources, this label is automatically synced from the resource's spec.shard field. Users are discouraged from modifying the label directly. The label exists primarily to enable querying for resources by shard using kubectl.