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

Implement polling for instances deprovisioning #3667

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

Conversation

zabanov-lab
Copy link
Contributor

Added if staetement in OSBAPI CLient for unrecoverable errors and implemented polling to Deprovision last operation. Also, when deprovision fails the instance is not deleted, it sets the failed state to instance the last operation

Is there a related GitHub Issue?

#3586

Does this PR introduce a breaking change?

No

Copy link
Member

@danail-branekov danail-branekov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, some polishing in tests is needed.

Also, linter is unhappy - pollProvisionOperation and pollDeprovisionOperation are quite similar.

I am not sure whether extracting the common code in an utility function would make the code look better, but you could give it a try. If not, you should suppress those warnings with a linter instruction comment, look here for an example

@zabanov-lab zabanov-lab force-pushed the issues/3586-do-not-delete-instance-when-unprovision-fails branch from 139dd8b to 151f9ab Compare December 18, 2024 15:34
Copy link
Member

@danail-branekov danail-branekov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some minor comments. Also, one of the controllers tests is failing: https://github.com/cloudfoundry/korifi/actions/runs/12396243711/job/34603814936?pr=3667

Added if staetement in OSBAPI CLient for unrecoverable errors and
implemented polling to Deprovision last operation. Also, when
deprovision fails the instance is not deleted, it sets the failed state
to instance the last operation

fixes cloudfoundry#3586

WIP

Co-authored-by: Danail Branekov <[email protected]>
@zabanov-lab zabanov-lab force-pushed the issues/3586-do-not-delete-instance-when-unprovision-fails branch from 1848a55 to 3ea52d9 Compare December 19, 2024 09:38
@danail-branekov danail-branekov enabled auto-merge (rebase) December 19, 2024 14:36
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