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

Namespace deletion check in Reconcile function #505

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

osmman
Copy link
Contributor

@osmman osmman commented Jul 11, 2024

This pull request introduces a check in the reconcile function to determine if the namespace is marked for deletion. If the namespace is in the process of being terminated, the reconciliation will cease. This enhancement prevents the operator from attempting to create or update objects within a terminating namespace, thereby avoiding error messages such as:

unable to create new content in namespace test-b22323db-f1c2-4d5b-b4ba-f5bdd4aa257a because it is being terminated

@openshift-ci openshift-ci bot requested review from cooktheryan and sabre1041 July 11, 2024 10:00
Copy link

openshift-ci bot commented Jul 11, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: osmman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@osmman osmman changed the title Reconcilation checks if namespace is marked for deletion Namespace deletion check in Reconcile function Jul 11, 2024
@osmman osmman force-pushed the namespace-marked-deletion branch 2 times, most recently from f320a86 to ad8d851 Compare July 11, 2024 10:38
@osmman osmman force-pushed the namespace-marked-deletion branch from ad8d851 to 8bbe03a Compare July 11, 2024 10:39
@bouskaJ
Copy link
Collaborator

bouskaJ commented Jul 11, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jul 11, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 3b6a6d7 into main Jul 11, 2024
13 checks passed
@osmman osmman deleted the namespace-marked-deletion branch July 11, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants