Skip to content

Commit

Permalink
Merge pull request #2552 from Tharsanan1/fix-helm-upgrade
Browse files Browse the repository at this point in the history
Fix helm upgrade command deleting HttpRoutes
  • Loading branch information
Tharsanan1 authored Oct 8, 2024
2 parents e382ae2 + 2553f6c commit c95831f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions adapter/internal/operator/controllers/dp/api_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2809,6 +2809,9 @@ func prepareOwnerReference(apiItems []dpv1alpha3.API) []metav1.OwnerReference {
ownerReferences := []metav1.OwnerReference{}
uidMap := make(map[string]bool)
for _, ref := range apiItems {
if ref.Spec.SystemAPI {
continue
}
if _, exists := uidMap[string(ref.UID)]; !exists {
ownerReferences = append(ownerReferences, metav1.OwnerReference{
APIVersion: ref.APIVersion,
Expand Down

0 comments on commit c95831f

Please sign in to comment.