Skip to content

Commit

Permalink
fix: cascading deletion failed when mcs
Browse files Browse the repository at this point in the history
Signed-off-by: shentiecheng <[email protected]>
  • Loading branch information
Poor12 committed Apr 17, 2024
1 parent 733e4a6 commit 2f787d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controllers/sync/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1225,6 +1225,9 @@ func (s *SyncController) cascadingDeletionForFTC(

// get the corresponding federated object
fedObjName := naming.GenerateFederatedObjectName(clusterObj.GetName(), ftc.Name)
if util.IsDerivedService(clusterObj.GetAnnotations()) {
fedObjName = naming.GenerateDerivedSvcFedObjName(clusterObj.GetName())
}
fedObj, err := s.fedAccessor.FederatedResource(common.QualifiedName{
Namespace: clusterObj.GetNamespace(),
Name: fedObjName,
Expand Down

0 comments on commit 2f787d9

Please sign in to comment.