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 #1609

Merged
merged 1 commit into from
Aug 4, 2021
Merged

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

@hiddeco hiddeco force-pushed the patch-reconcile-req branch from fe0dda8 to fb5ba4a Compare July 9, 2021 15:52
@hiddeco hiddeco requested a review from squaremo July 9, 2021 16:02
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

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 hiddeco force-pushed the patch-reconcile-req branch from fb5ba4a to 9607b07 Compare August 4, 2021 11:08
@hiddeco hiddeco merged commit 4f4f0d7 into main Aug 4, 2021
@hiddeco hiddeco deleted the patch-reconcile-req branch August 4, 2021 11:29
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.

2 participants