Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow opt-out of drift correction #647

Merged
merged 2 commits into from
Mar 20, 2023
Merged

Allow opt-out of drift correction #647

merged 2 commits into from
Mar 20, 2023

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented Mar 17, 2023

This enhances the drift detection to allow detection without acting on it by adding a CorrectDrift feature gate. When set to false (i.e. --feature-gates=DetectDrift=true,CorrectDrift=false), the controller will only log the difference it detected without acting on it.

This allows for a smoother transition to drift detection, as issues with a number of existing releases can be solved before the feature is enabled in full.

Fixes: #645

@hiddeco hiddeco added the enhancement New feature or request label Mar 17, 2023
@hiddeco hiddeco force-pushed the allow-drift-diff-only branch 2 times, most recently from ebbee2a to c0361cf Compare March 17, 2023 15:55
Copy link
Contributor

@darkowlzz darkowlzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
How about mentioning it in the spec docs in the Drift detection section?

@hiddeco
Copy link
Member Author

hiddeco commented Mar 20, 2023

@darkowlzz yes, this was still on my list but was nearing my EOD on Friday.

@hiddeco hiddeco force-pushed the allow-drift-diff-only branch 3 times, most recently from dbb2277 to 75f4fc6 Compare March 20, 2023 08:57
hiddeco added 2 commits March 20, 2023 13:07
This enhances the drift detection to allow detection without acting on
it by adding a `CorrectDrift` feature gate. When set to `false` (i.e.
`--feature-gates=DetectDrift=true,CorrectDrift=false`), the controller
will only log the difference it detected without acting on it.

This allows for a smoother transition to drift detection, as issues
with a number of existing releases can be solved before the feature
is enabled in full.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
@hiddeco hiddeco force-pushed the allow-drift-diff-only branch from 75f4fc6 to 46add22 Compare March 20, 2023 12:07
@hiddeco hiddeco merged commit 6d58896 into main Mar 20, 2023
@hiddeco hiddeco deleted the allow-drift-diff-only branch March 20, 2023 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Report-only drift detection
3 participants