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

remove VA deletion #158

Merged
merged 3 commits into from
Nov 1, 2023
Merged

remove VA deletion #158

merged 3 commits into from
Nov 1, 2023

Conversation

mshitrit
Copy link
Member

@mshitrit mshitrit commented Oct 29, 2023

ECOPROJECT-1748
VA should not be deleted by SNR. kube-control-manager (KCM) detects the pod deletion and automatically detaches the VAs which are not connected to any pod, forcefully deleting the VA has the risk of interfering with the process of detaching the VAs.

Signed-off-by: Michael Shitrit <[email protected]>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 29, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 29, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mshitrit

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

@mshitrit
Copy link
Member Author

/test 4.12-openshift-e2e

@razo7
Copy link
Member

razo7 commented Oct 29, 2023

Would it make more sense to move deleteResources function into the common repo, then FAR and SNR can use it as well for resource deletion?

@mshitrit
Copy link
Member Author

Would it make more sense to move deleteResources function into the common repo, then FAR and SNR can use it as well for resource deletion?

I have no strong opinion either way.
On the one hand it's always a good thing avoiding code duplication but on the other hand I am not sure the overhead will be worth the value (specifically because it's a pretty short method).

@mshitrit
Copy link
Member Author

/test 4.12-openshift-e2e

@razo7
Copy link
Member

razo7 commented Oct 31, 2023

Would it make more sense to move deleteResources function into the common repo, then FAR and SNR can use it as well for resource deletion?

I have no strong opinion either way. On the one hand it's always a good thing avoiding code duplication but on the other hand I am not sure the overhead will be worth the value (specifically because it's a pretty short method).

Can you update commons and use DeletePods from https://github.com/medik8s/common/releases/tag/v1.9.0? Other than that looks good for me.

@clobrano
Copy link
Contributor

/lgtm

Just leaving the time to close the other threads
/hold

@mshitrit mshitrit marked this pull request as ready for review October 31, 2023 10:24
@mshitrit mshitrit changed the title [WIP] remove VA deletion remove VA deletion Oct 31, 2023
@mshitrit
Copy link
Member Author

/unhold

@mshitrit
Copy link
Member Author

/hold

Signed-off-by: Michael Shitrit <[email protected]>
@openshift-ci openshift-ci bot removed the lgtm label Oct 31, 2023
@razo7
Copy link
Member

razo7 commented Oct 31, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Oct 31, 2023
@mshitrit
Copy link
Member Author

mshitrit commented Nov 1, 2023

/unhold

@openshift-ci openshift-ci bot merged commit b5894be into medik8s:main Nov 1, 2023
14 checks passed
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.

3 participants