Change to `helm.toolkit.fluxcd.io/driftDetection`

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
Hidde Beydals 2023-03-01 09:35:53 +01:00
parent ff07f52dee
commit 38ea587370
No known key found for this signature in database
GPG Key ID: 979F380FC2341744
2 changed files with 5 additions and 5 deletions

View File

@ -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
@ -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
```
@ -1344,7 +1344,7 @@ 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
@ -1352,7 +1352,7 @@ spec:
kind: PrometheusRule
patch: |
- op: add
path: /metadata/annotations/helm.toolkit.fluxcd.io~1diff
path: /metadata/annotations/helm.toolkit.fluxcd.io~1driftDetection
value: disabled
```

View File

@ -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"