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

Dry-run resource update before comparing changes #356

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

guicassolato
Copy link
Contributor

@guicassolato guicassolato commented Dec 4, 2023

Ensure defaults and all resource mutation are considered before comparing existing vs desired state of resources when reconciling updates, by dry-running the updates before

Closes #354

…ring existing vs desired state of resources when reconciling updates, by dry-running the updates before
@guicassolato guicassolato requested a review from a team as a code owner December 4, 2023 15:08
@guicassolato guicassolato self-assigned this Dec 4, 2023
Copy link

codecov bot commented Dec 4, 2023

Codecov Report

Merging #356 (6a2200c) into main (2acf31b) will decrease coverage by 0.07%.
The diff coverage is 25.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #356      +/-   ##
==========================================
- Coverage   65.31%   65.24%   -0.07%     
==========================================
  Files          35       35              
  Lines        3800     3804       +4     
==========================================
  Hits         2482     2482              
- Misses       1125     1128       +3     
- Partials      193      194       +1     
Flag Coverage Δ
integration 70.48% <ø> (-0.05%) ⬇️
unit 59.32% <25.00%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
api/v1beta1 (u) ∅ <ø> (∅)
pkg/common (u) 76.92% <ø> (ø)
pkg/istio (u) 30.24% <ø> (ø)
pkg/log (u) 31.81% <ø> (ø)
pkg/reconcilers (u) 33.21% <25.00%> (-0.12%) ⬇️
pkg/rlptools (u) 56.46% <ø> (ø)
controllers (i) 70.48% <ø> (-0.05%) ⬇️
Files Coverage Δ
pkg/reconcilers/base_reconciler.go 37.86% <25.00%> (-0.52%) ⬇️

... and 7 files with indirect coverage changes

Copy link
Member

@didierofrivia didierofrivia left a comment

Choose a reason for hiding this comment

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

As commented in kubernetes-sigs/kubebuilder#592 (comment), seems to be the agreed way to compare resource objects to date.

@guicassolato guicassolato merged commit 1b6d635 into main Dec 4, 2023
20 of 21 checks passed
@guicassolato guicassolato deleted the apply-defaults-before-compare branch December 4, 2023 15:45
maleck13 pushed a commit to maleck13/kuadrant-operator that referenced this pull request Dec 12, 2023
…ring existing vs desired state of resources when reconciling updates, by dry-running the updates before (Kuadrant#356)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Endless loop of reconciliation of AuthConfig
3 participants