Feat #1095: Add drift_detection attribute to detect in-cluster changes via three-way comparison - #1854
Open
dennismdejong wants to merge 1 commit into
Open
Conversation
…er changes via three-way comparison
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
drift_detectionboolean attribute (default:false) tohelm_release. When enabled, the Read function compares the Helm release manifest against live Kubernetes resource manifests and reports any differences as a warning diagnostic during planning.Key changes:
helm/resource_helm_release.go: AddedDriftDetectionfield, schema attribute, drift detection call in Read, anddetectDriftfunctionhelm/kube_resources.go: AddedgetManifestResourceshelper to extract resources from the release manifestThe comparison normalizes both manifest and live resources (strips server-side annotations, managed fields, volatile metadata) before comparing for true functional drift.