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

fix(postgresuser): return k8s client error before annotations #141

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

Conversation

cryptobioz
Copy link

In the GetPostgresCR function, we should return the k8s client error before checking the annotations. If not, deleting a Postgres resource will cause the linked PostgresUsers to enter an infinite reconciliation loop as the CR NotFound error will never be returned to the Reconcile function.

This PR should fix #118.

In the GetPostgresCR function, we should return the k8s client error
before checking the annotations. If not, deleting a Postgres resource
will cause the linked PostgresUsers to enter an infinite reconciliation
loop as the CR NotFound error will never be returned to the Reconcile
function.
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.

When postgres CR deleted before postgresusers CR it makes postgresusers finalizers to fail
1 participant