-
Couldn't load subscription status.
- Fork 1
feat: MCPv2 controller #115
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
Conversation
7899415 to
3808e8f
Compare
7b42d35 to
484fb50
Compare
| if !cr.GetDeletionTimestamp().IsZero() { | ||
| log.Debug("ClusterRequest resource already marked for deletion", "crName", crName, "namespace", cr.GetNamespace()) | ||
| continue | ||
| } |
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.
Deleting a resource is idempotent so this check is not needed. But we can keep it if you think the debug message could be useful.
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.
Yes, this is more about the debug message than about preventing a duplicate deletion.
| log.Debug("Labels on MCP namespace on platform cluster do not match expected labels, skipping deletion", "platformNamespace", ns.Name) | ||
| } else { | ||
| if !ns.DeletionTimestamp.IsZero() { | ||
| log.Debug("MCP namespace already marked for deletion", "platformNamespace", ns.Name) |
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.
Same here
| remainingServiceResources := []*unstructured.Unstructured{} | ||
| for _, res := range serviceResources { | ||
| if !res.GetDeletionTimestamp().IsZero() { | ||
| log.Debug("Service resource already marked for deletion", "resourceKind", res.GetKind(), "resourceAPIVersion", res.GetAPIVersion(), "provider", providerName) |
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.
Same here
What this PR does / why we need it:
Implements the MCP v2 controller.
Which issue(s) this PR fixes:
Main part of openmcp-project/backlog#210
Special notes for your reviewer:
Depends on #114 and requires it to be merged first.
Release note: