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

set status.observedGeneration after reconcile #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hensur
Copy link

@hensur hensur commented Nov 9, 2022

Hey!

I've been testing your extension for a few days. After a cluster reconfiguration, gardener complained about the DNSRecords not being reconciled. However, they were successfully updated.

After manually updating status.observedGeneration to the current resource generation, the gardener reconciliation continued.

I'm not sure if that's supposed to be done by the gardener extension framework. I didn't see anything after taking a quick look at the provided methods.

I guess patching the status in the Reconcile method should work fine as well...

The expected behaviour regarding observedGeneration is explained here:
https://github.com/gardener/gardener/blob/master/docs/proposals/01-extensibility.md#custom-resource-definitions

@schrodit
Copy link
Owner

schrodit commented Mar 7, 2023

Sry for the late reply. Must have missed it in my notifications.

I don't think this is needed. The gardener extension runtime already sets the observed generation in the status updater if the operation is finished. See the dnsrecord reconciler.
So I think there there must be a different error as its also working fine in our productive setup with Gardener 1.56.2

Updater:

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