Skip to content

Commit

Permalink
rename test app
Browse files Browse the repository at this point in the history
Co-Authored-By: Youssef Bel Mekki <38552193+ybelMekk@users.noreply.github.com>
Co-Authored-By: sindrerh2 <sindre.rodseth.hansen@nav.no>
  • Loading branch information
3 people committed Nov 7, 2024
1 parent 0509307 commit 14f1bc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/resourcecreator/ingress/ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func nginxIngresses(source Source, cfg Config) ([]*networkingv1.Ingress, error)
if rule.Host == parsedRedirectUrl.Host {
r := ingressRule(source.GetName(), parsedRedirectUrl)
ingressClass := util.ResolveIngressClass(rule.Host, cfg.GetGatewayMappings())
rdIngress, err := getIngress(source, cfg, r, ingressClass, string(redirect.From))
rdIngress, err := getIngress(source, cfg, r, ingressClass, string(redirect.To))
if err != nil {
return nil, err
}
Expand Down
7 changes: 4 additions & 3 deletions pkg/resourcecreator/testdata/ingress_redirect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ tests:
- operation: CreateOrUpdate
apiVersion: networking.k8s.io/v1
kind: Ingress
name: myapplication-nais-ingress-941e7d93
name: myapplicationredirect-nais-ingress-8b7125b7
match:
- type: subset
name: "ingress for myapp with a normal ingress and a redirect ingress"
Expand All @@ -49,10 +49,11 @@ tests:
port:
number: 80
path: /

- operation: CreateOrUpdate
apiVersion: networking.k8s.io/v1
kind: Ingress
name: myapplication-nais-ingress-external-dd9c46f7
name: myapplicationredirect-nais-ingress-external-0b3cf169
match:
- type: subset
name: "ingress for myapp with a normal ingress and a redirect ingress"
Expand All @@ -68,7 +69,7 @@ tests:
paths:
- backend:
service:
name: myapplication
name: myapplicationredirect
port:
number: 80
path: /
Expand Down

0 comments on commit 14f1bc3

Please sign in to comment.