Skip to content

Commit

Permalink
Change to helm.toolkit.fluxcd.io/driftDetection
Browse files Browse the repository at this point in the history
Signed-off-by: Hidde Beydals <[email protected]>
  • Loading branch information
hiddeco committed Mar 1, 2023
1 parent 19ee613 commit 5b7b85e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs/spec/v2beta1/helmreleases.md
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,7 @@ dry-run), the controller will perform an upgrade for the release, restoring the
### Excluding resources from drift detection

The drift detection feature can be configured to exclude certain resources from the comparison
by labeling or annotating them with `helm.toolkit.fluxcd.io/diff: disabled`. Using
by labeling or annotating them with `helm.toolkit.fluxcd.io/driftDetection: disabled`. Using
[post-renderers](#post-renderers), this can be applied to any resource rendered by Helm.

```yaml
Expand All @@ -1302,7 +1302,7 @@ spec:
name: my-app
patch: |
- op: add
path: /metadata/annotations/helm.toolkit.fluxcd.io~1diff
path: /metadata/annotations/helm.toolkit.fluxcd.io~1driftDetection
value: disabled
```

Expand Down Expand Up @@ -1344,15 +1344,15 @@ spec:
name: kube-prometheus-stack-admission
patch: |
- op: add
path: /metadata/annotations/helm.toolkit.fluxcd.io~1diff
path: /metadata/annotations/helm.toolkit.fluxcd.io~1driftDetection
value: disabled
- target:
# Ignore these objects from Flux diff as they are mutated at apply time but not
# at dry-run time
kind: PrometheusRule
patch: |
- op: add
path: /metadata/annotations/helm.toolkit.fluxcd.io~1diff
path: /metadata/annotations/helm.toolkit.fluxcd.io~1driftDetection
value: disabled
```

Expand Down
2 changes: 1 addition & 1 deletion internal/diff/differ.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import (
var (
// MetadataKey is the label or annotation key used to disable the diffing
// of an object.
MetadataKey = helmv1.GroupVersion.Group + "/diff"
MetadataKey = helmv1.GroupVersion.Group + "/driftDetection"
// MetadataDisabledValue is the value used to disable the diffing of an
// object using MetadataKey.
MetadataDisabledValue = "disabled"
Expand Down

0 comments on commit 5b7b85e

Please sign in to comment.