This commit is contained in:
Adrian Moisey 2024-11-21 07:41:41 +02:00
parent cc63aeec41
commit 0be3a5a0ec
No known key found for this signature in database
GPG key ID: 41AE4AE32747C7CF

View file

@ -732,7 +732,7 @@ func NewSingleIngressWithMultiplePaths(name string, paths []string, host, ns, se
return newSingleIngress(name, ns, annotations, spec) return newSingleIngress(name, ns, annotations, spec)
} }
func NewSingleIngressWithMultiplePathsOfDifferentTypes(name string, host, ns string, services map[string]networking.PathType, port int, annotations map[string]string) *networking.Ingress { func NewSingleIngressWithMultiplePathsOfDifferentTypes(name, host, ns string, services map[string]networking.PathType, port int32, annotations map[string]string) *networking.Ingress {
spec := networking.IngressSpec{ spec := networking.IngressSpec{
IngressClassName: GetIngressClassName(ns), IngressClassName: GetIngressClassName(ns),
Rules: []networking.IngressRule{ Rules: []networking.IngressRule{
@ -753,7 +753,7 @@ func NewSingleIngressWithMultiplePathsOfDifferentTypes(name string, host, ns str
Service: &networking.IngressServiceBackend{ Service: &networking.IngressServiceBackend{
Name: service, Name: service,
Port: networking.ServiceBackendPort{ Port: networking.ServiceBackendPort{
Number: int32(port), Number: port,
}, },
}, },
}, },