Stay organized with collections Save and categorize content based on your preferences.

Config Sync-managed labels and annotations

Config Sync adds and manages several labels and annotations on objects in the cluster. Do not modify these values.

Labels

Label Description
app.kubernetes.io/managed-by: configmanagement.gke.io Marks the object as currently managed by Config Sync.
configsync.gke.io/declared-version: API_VERSION This label indicates the API version in which a resource was initially declared.

Annotations

Annotation Description
configmanagement.gke.io/cluster-name: CLUSTER_NAME The name of the cluster, used by ClusterSelectors.
configmanagement.gke.io/declared-config: JSON_OUTPUT JSON representation of how the object is declared in Git.
configmanagement.gke.io/managed: enabled Indicates that Config Sync manages the object.
configmanagement.gke.io/source-path: PATH The path in the repository to the file declaring this object.
configmanagement.gke.io/token: TOKEN_HASH The Git hash of the repository when this object was last modified.
configsync.gke.io/declared-fields: DECLARED_FIELDS Stores the declared configuration of a resource in Git. This annotation uses the same format as the managed fields of server-side apply.
configsync.gke.io/manager: MANAGER Which reconciler manages the current object. The value is :root or NAMESPACE.
configsync.gke.io/resource-id: RESOURCE_ID Indicates information about the resource's group, kind, namespace, and name.
configsync.gke.io/git-context: GIT_CONTEXT Stores the Git source-of-truth that a resource is synced from. Includes information on the repository, branch, and revision.
config.k8s.io/owning-inventory: INVENTORY Indicates the resource-group object that owns this resource.