Skip to content

Conversation

@mikkeloscar
Copy link
Member

@mikkeloscar mikkeloscar commented Dec 4, 2025

This introduces a new status field observedGeneration on the postgresql resource. The purpose of this is to correctly reflect when the postgres-operator has observed the resource change and applied the desired updates/changes on child resources.

This is a standard pattern in Kubernetes where resources like deployment also use this to indicate when the latest deployment spec has been processed.

This change is especially helpful in deployment situation where the resource is applied and the deployment system checks if the resource is "ready". Without this the deployment system can't determine if the changes were already applied or not, assuming they were which can be wrong.

TODO

  • Add to schema
  • Add tests
    • Include in e2e test

@mikkeloscar mikkeloscar added major Major feature changes or updates, e.g. feature rollout to a new country, new API calls. do-not-merge labels Dec 4, 2025
@mikkeloscar mikkeloscar force-pushed the observed-generation branch 2 times, most recently from 8cdc982 to dbea3a5 Compare December 5, 2025 12:59
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge major Major feature changes or updates, e.g. feature rollout to a new country, new API calls.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants