# What does driftDetection.mode: enabled do on a HelmRelease?

Flux CD, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-does-driftdetectionmode-enabled-do-on-a-helmrelease

- A. Detects new chart versions and upgrades the release automatically
- B. Compares the release values with the chart's values.yaml in Git
- C. Detects changes made in the cluster to the release's resources and reverts them
- D. Blocks kubectl edits to resources owned by the release

**Answer:** Detects changes made in the cluster to the release's resources and reverts them

**Explanation:** helm-controller compares the manifest Helm stored with the cluster using a server-side dry-run apply. With mode: warn it only emits an event about the drift; with enabled it also patches the resources back. Without it, Helm only touches resources during an install or upgrade.
