-
Notifications
You must be signed in to change notification settings - Fork 5
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
Reject NAB CR creation calls for orphaned Velero Backup objects #84
Comments
Would it make sense to add the validation webhook in OADP rather than non admin part ? This could allow such webhook to reject NAB objects when NAB controller is not installed in the cluster (something @shawn-hurley requested in the past). |
Issue origin #73 (review) We are still waiting to check how Velero handles this case to apply the same solution, right? |
My opinion is that we don't have to have the |
Do not forget about sync controller when implementing this Discussion https://redhat-internal.slack.com/archives/C064QSN2YR3/p1728312889734609 |
Summarizing the slack discussion thread:
|
Is this issue still valid? In the past, creating nab called "test", the related velero backup would always have the same name "test-123456" (as discussed here #90) Now, each related velero backup has a different name (containing UUID) To avoid this we would need to check UUID is really unique before applying to nonAdmin object here, right?
This is also tracked here #102 |
I think we can close this. Currently there is a major rework of the deletion of NAB implemented that does not require admission webhook. The diagram presenting how the three paths of deletion of NAB object works: With that the only way to leave orphaned Velero Backup would be to remove finalizer from the NAB and call the With standard three deletion methods via spec fields the Velero Backup will get cleanly deleted either by NAC controller (force deletion - leaving s3 storage) or by Velero deletion request (deletion spec, causing s3 storage to be cleaned up). With |
Scenario:
Solution approach:
The text was updated successfully, but these errors were encountered: