Skip to content

Commit

Permalink
Fix findings
Browse files Browse the repository at this point in the history
  • Loading branch information
lburgazzoli committed Jan 27, 2025
1 parent 7ce6c02 commit c4c10dd
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions controllers/components/kserve/kserve_support.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,5 @@ func ownedViaFT(cli client.Client) handler.MapFunc {
}

func isLegacyOwnerRef(or metav1.OwnerReference) bool {
switch {
case or.APIVersion == gvk.DataScienceCluster.GroupVersion().String() && or.Kind == gvk.DataScienceCluster.Kind:
return true
case or.APIVersion == gvk.DSCInitialization.GroupVersion().String() && or.Kind == gvk.DSCInitialization.Kind:
return true
default:
return false
}
return or.APIVersion == gvk.DataScienceCluster.GroupVersion().String() && or.Kind == gvk.DataScienceCluster.Kind
}

0 comments on commit c4c10dd

Please sign in to comment.