# Annotations

This page outlines the annotations supported by Config Connector resources.

## Generic annotations

Generic annotations can be applied to all Config Connector resources. You can
find the list of generic annotations and their descriptions in the following
table.

| Annotation | Description |
|---|---|
| `cnrm.cloud.google.com/deletion-policy: POLICY` | Can be `"none"` or "abandon". When deleting a Config Connector resource the associated Google Cloud resource is deleted by default. To keep the Google Cloud resource, specify "abandon". Default value is "none". |
| `cnrm.cloud.google.com/management-conflict-prevention-policy: POLICY` | Can be "none" or "resource". For more details see [Managing conflicts with multiple Config Connector resources](https://docs.cloud.google.com/config-connector/docs/concepts/managing-conflicts). Default value is "none". |
| `cnrm.cloud.google.com/ignore-clusterless: "true"` | Can be `"true"` or `"false"`. Indicates resources which should be skipped when running outside a server environment. For example, these resources will not be [exported as Terraform](https://catalog.kpt.dev/export-terraform/v0.1/?id=skipping-resources). Default value is `"false"`. |
| `cnrm.cloud.google.com/reconcile-interval-in-seconds: NUMBER` | Must be a non-negative integer. For more details, see [Configuring the reconciliation interval](https://docs.cloud.google.com/config-connector/docs/concepts/reconciliation#configuring_the_reconciliation_interval). |
| `cnrm.cloud.google.com/backoff-max-delay-in-seconds: NUMBER` | Must be a non-negative integer. Requires Config Connector version 1.160.0 or later. Supported only for resources managed by [direct controllers](https://docs.cloud.google.com/config-connector/docs/concepts/controller-types). For more details, see [Configuring exponential backoff for reconciliation errors](https://docs.cloud.google.com/config-connector/docs/concepts/reconciliation#configuring-exponential-backoff). |

## Resource-specific annotations

Resource-specific annotations configure Config Connector to take additional
actions beyond creating or deleting resources.

For example, Cloud Storage doesn't let you delete a `StorageBucket` that
contains objects. Applying the `force-destroy` annotation to the bucket and then
deleting the bucket causes Config Connector to delete all of the objects within
the bucket first, then deletes the bucket.

For example, the `force-destroy` directive is declared in the following YAML
snippet.

    metadata:
      annotations:
        cnrm.cloud.google.com/force-destroy: "true"

Check each Config Connector resource's [reference page](https://docs.cloud.google.com/config-connector/docs/reference/resources) to learn
resource-specific annotations.

## Annotations for internal usage

The following annotations are managed by Config Connector. You must never set or
edit any of them.

| Annotation | Description |
|---|---|
| `cnrm.cloud.google.com/mutable-but-unreadable-fields` | This annotation is added and managed by Config Connector for resources with [mutable but unreadable fields](https://cloud.google.com/config-connector/docs/concepts/reconciliation#mutable_but_unreadable_fields_are_actuated_on_change_only) (for example, "password" field in some resource spec). |
| `cnrm.cloud.google.com/observed-secret-versions` | This annotation is added and managed by Config Connector for resources with sensitive fields. |
| `cnrm.cloud.google.com/supports-ssa` | This annotation is added and managed by Config Connector for resources with [server-side apply enabled](https://cloud.google.com/config-connector/docs/concepts/managing-fields-externally#behavior_with_server-side_apply) . |
| `cnrm.cloud.google.com/blueprint` | This annotation is added for resources used in [KRM blueprints](https://github.com/GoogleCloudPlatform/blueprints). |