-
Notifications
You must be signed in to change notification settings - Fork 58
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
Delete manifestwork for application namespace #1381
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nirs
reviewed
May 8, 2024
abhijeet219
force-pushed
the
mw-namespace
branch
3 times, most recently
from
May 9, 2024 11:02
43b930d
to
e357612
Compare
ShyamsundarR
reviewed
May 9, 2024
ShyamsundarR
reviewed
May 9, 2024
abhijeet219
force-pushed
the
mw-namespace
branch
2 times, most recently
from
May 10, 2024 11:37
721c578
to
c1e5699
Compare
abhijeet219
force-pushed
the
mw-namespace
branch
4 times, most recently
from
May 14, 2024 15:00
4154453
to
e634d18
Compare
abhijeet219
force-pushed
the
mw-namespace
branch
2 times, most recently
from
June 5, 2024 05:14
c4bc3bc
to
dda721a
Compare
abhijeet219
force-pushed
the
mw-namespace
branch
5 times, most recently
from
July 16, 2024 11:30
29ed404
to
b8735a2
Compare
abhijeet219
force-pushed
the
mw-namespace
branch
4 times, most recently
from
August 12, 2024 09:27
f0bdf1b
to
4ea8d31
Compare
abhijeet219
force-pushed
the
mw-namespace
branch
3 times, most recently
from
August 18, 2024 16:25
f2ca445
to
776428d
Compare
ShyamsundarR
approved these changes
Sep 5, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@abhijeet219 please rebase to latest main, and we can merge. Change looks good.
The one nit I have is on the function name, if that can be addressed as part of the rebase it would be nice. Thanks!
Signed-off-by: Abhijeet Shakya <[email protected]>
The changeset includes a new DeleteNamespaceManifestWork() func, which first checks if the mw.Spec has delete option or if it already has a DeletionTimestamp. Accordingly, it proceeds to delete the namespace manifestwork. It also updates the namespace manifestwork with the deleteOption and propogationPolicy of type orphan, whenever the createOrUpdateNamespaceManifest() func is called. Fixes: [Bug 2059669](https://bugzilla.redhat.com/show_bug.cgi?id=2059669) Signed-off-by: Abhijeet Shakya <[email protected]>
abhijeet219
force-pushed
the
mw-namespace
branch
from
September 6, 2024 09:42
776428d
to
167d2e9
Compare
Signed-off-by: Abhijeet Shakya <[email protected]>
abhijeet219
force-pushed
the
mw-namespace
branch
from
September 6, 2024 10:23
167d2e9
to
68e95c3
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes:
The changeset includes a new DeleteNamespaceManifestWork() func to delete the manifestwork for namespace. It first checks if the mw.Spec has delete option or if it already has a DeletionTimestamp. Accordingly, it proceeds to delete the
namespace manifestwork.
Also introduces updating of the namespace manifestwork with the deleteOption and propogationPolicy of type orphan, whenever the createOrUpdateNamespaceManifest() func is called.
Fixes: Bug 2059669