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

Request reconcile using patch instead of update #217

Merged
merged 1 commit into from
Aug 5, 2021

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented Jul 9, 2021

This should prevent the generation of the object getting bumped, as
observed on a GKE K8s 1.18 cluster using the logic before this commit.

We only want to generation to increase when there are actual changes to
the spec of a resource, as some controllers use the generation
value to make assumptions about what they should do during a
reconciliation.

Ref: fluxcd/helm-controller#295

This should prevent the generation of the object getting bumped, as
observed on a GKE K8s 1.18 cluster using the  logic before this commit.

We only want to generation to increase when there are actual changes to
the `spec` of a resource, as some controllers use the `generation`
value to make assumptions about what they should do during a
reconciliation.

Signed-off-by: Hidde Beydals <hello@hidde.co>
@hiddeco
Copy link
Member Author

hiddeco commented Jul 9, 2021

@mihaisee if you are not on vacation yet, AMD64 image for testing is available at hiddeco/notification-controller:patch-reconcile-req-e7bb4c9.

@mihaisee
Copy link

mihaisee commented Jul 9, 2021

Unfortunately I don't have acces to my laptop right now.
Thanks for the quick response. Really appreciate it!

Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @hiddeco

@stefanprodan stefanprodan merged commit a25cd39 into main Aug 5, 2021
@stefanprodan stefanprodan deleted the patch-reconcile-req branch August 5, 2021 09:19
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.

3 participants