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

ssa: Improve drift detection #167

Merged
merged 1 commit into from
Oct 13, 2021
Merged

ssa: Improve drift detection #167

merged 1 commit into from
Oct 13, 2021

Conversation

stefanprodan
Copy link
Member

Remove server-side generated fields (metadata and status) before checking for semantic equality. Removing the server generated fields means that we no longer have to look for spec to properly detect drift.

Thanks @seh for suggesting this in fluxcd/flux2#1934.

Remove server-side generated fields (metadata and status) before checking for semantic equality.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan added enhancement New feature or request area/server-side-apply SSA related issues and pull requests labels Oct 13, 2021
@stefanprodan stefanprodan requested review from hiddeco and phillebaba and removed request for hiddeco October 13, 2021 08:44
Copy link
Member

@phillebaba phillebaba left a comment

Choose a reason for hiding this comment

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

LGTM

@stefanprodan stefanprodan merged commit ea562a0 into main Oct 13, 2021
@stefanprodan stefanprodan deleted the ssa-drift branch October 13, 2021 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/server-side-apply SSA related issues and pull requests enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants