Config Sync-managed labels and annotations

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

Labels

  • app.kubernetes.io/managed-by: configmanagement.gke.io: Marks the object as currently managed by Config Sync.
  • configsync.gke.io/declared-version: API version: The API version in which a resource was initially.

Annotations

  • configmanagement.gke.io/cluster-name: cluster-name: The name of the cluster, used by ClusterSelectors.
  • configmanagement.gke.io/declared-config: { ... json content... }: JSON representation of how the object is declared in Git.
  • configmanagement.gke.io/managed: enabled: Indicates that the object is managed by Config Sync.
  • configmanagement.gke.io/source-path: path/to/object.yaml: The path in the repo 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: Indicates which multi-repo reconciler is managing the resource.
  • configsync.gke.io/resource-id: resource-id: Indicates the resource's group, kind, namespace, and name information.
  • configsync.gke.io/git-context: git-context: Stores the Git source-of-truth a resource is synced from.
  • config.k8s.io/owning-inventory: inventory: Indicates the resource-group object that owns this resource.