Skip to content

Commit

Permalink
Fix: validate HTTP field (#110)
Browse files Browse the repository at this point in the history
Fixes #109
  • Loading branch information
yonahd authored Oct 19, 2023
1 parent ce0998a commit aa387e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/kor/ingresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ func retrieveUsedIngress(clientset kubernetes.Interface, namespace string) ([]st
used = validateServiceBackend(clientset, namespace, ingress.Spec.DefaultBackend)
}
for _, rule := range ingress.Spec.Rules {
if rule.HTTP == nil {
used = true
break
}
for _, path := range rule.HTTP.Paths {
used = validateServiceBackend(clientset, namespace, &path.Backend)
if used {
Expand Down

0 comments on commit aa387e2

Please sign in to comment.