Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

fix: fix fold ingress logic #21

Merged
merged 3 commits into from
Sep 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions kontrol-service/engine/flow/merger.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func foldAllIngress(ingresses []*resolved.Ingress) []*resolved.Ingress {
IngressID: key,
ActiveFlowIDs: lo.Uniq(lo.FlatMap(value, func(ingress *resolved.Ingress, _ int) []string { return ingress.ActiveFlowIDs })),
IngressRules: lo.Uniq(lo.FlatMap(value, func(ingress *resolved.Ingress, _ int) []*v1.IngressRule { return ingress.IngressRules })),
IngressSpec: value[0].IngressSpec,
ServiceSpec: value[0].ServiceSpec,
}
return &merged
Expand Down
Loading