diff --git a/internal/ingress/controller/template/template.go b/internal/ingress/controller/template/template.go index 1e69a0077..adfd0d1a6 100644 --- a/internal/ingress/controller/template/template.go +++ b/internal/ingress/controller/template/template.go @@ -259,7 +259,7 @@ func buildResolvers(res interface{}, disableIpv6 interface{}) string { } // buildLocation produces the location string, if the ingress has redirects -// (specified through the nginx.ingress.kubernetes.io/rewrite-to annotation) +// (specified through the nginx.ingress.kubernetes.io/rewrite-target annotation) func buildLocation(input interface{}) string { location, ok := input.(*ingress.Location) if !ok { @@ -358,7 +358,7 @@ func buildLoadBalancingConfig(b interface{}, fallbackLoadBalancing string) strin } // buildProxyPass produces the proxy pass string, if the ingress has redirects -// (specified through the nginx.ingress.kubernetes.io/rewrite-to annotation) +// (specified through the nginx.ingress.kubernetes.io/rewrite-target annotation) // If the annotation nginx.ingress.kubernetes.io/add-base-url:"true" is specified it will // add a base tag in the head of the response from the service func buildProxyPass(host string, b interface{}, loc interface{}, dynamicConfigurationEnabled bool) string {