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

Allow to update stateful sets and restart pods with custom annotations #15

Merged

Conversation

sergicastro
Copy link
Collaborator

@sergicastro sergicastro commented Aug 8, 2024

There might be external reasons to Kubegres that would require restart on stateful set pods.
This PR allows to cause updates on the stateful set, and pod restarts, by updating the Kubgres CR with kubegres.reactive-tech.io/ prefixed annotations.

The initial implementation did not consider custom annotations or label changes requiring stateful set update, it was only adding them at creation time.
The reason might be that other external integrations that label the resources for their own management (like Calico) will not cause DB restarts.
For this reason, only the kubegres.reactive-tech.io/ prefixed labels or annotations will be propagated causing the DB restart.

This is useful in the case you manually added TLS support to the DB. Because you can trigger a DB restart as soon you detect a TLS expiration/invalidation and a new one is created.

@sergicastro sergicastro marked this pull request as ready for review August 9, 2024 10:38
@sergicastro sergicastro merged commit f932bf9 into tetrateio:release-v1.16.x Aug 12, 2024
2 checks passed
@sergicastro sergicastro deleted the custom-metadata-enforcer branch August 12, 2024 08:53
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