From 568512fdb842f01740bf289effc0a4f6d61c8157 Mon Sep 17 00:00:00 2001 From: dongqi1990 Date: Thu, 19 Jul 2018 16:22:17 +0800 Subject: [PATCH] modified annotation name "rewrite-to" to "rewrite-target" in comments --- internal/ingress/controller/template/template.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {