Skip to content

Conversation

@mikkeloscar
Copy link
Member

This updates the postgresql status update logic to use UpdateStatus instead of Patch.

The Purpose of this change is to make it simpler to extend the status field and update it via modifying the struct and allow updates of multiple status fields at a time.

For now there is still only the field: PostgresClusterStatus so there is no functional change, but a follow up PR intend to add a new ObservedGeneration field.

This also fixes a test case which silently ignored updating the status of a resource which was not in the API already. It does so by registering the postgresql resource in the fake client used for testing.

Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
@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
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