From 7130ed85bc69a79a20bc9b3054efbb0aeb5c7629 Mon Sep 17 00:00:00 2001 From: Andreas Kohn Date: Thu, 6 Apr 2017 10:26:10 +0200 Subject: [PATCH] Fix the name of the annotation in comments --- controllers/nginx/pkg/template/template.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/nginx/pkg/template/template.go b/controllers/nginx/pkg/template/template.go index 14ae2025b..50fe58418 100644 --- a/controllers/nginx/pkg/template/template.go +++ b/controllers/nginx/pkg/template/template.go @@ -194,7 +194,7 @@ func buildSSLPassthroughUpstreams(b interface{}, sslb interface{}) string { } // buildLocation produces the location string, if the ingress has redirects -// (specified through the ingress.kubernetes.io/rewrite-to annotation) +// (specified through the ingress.kubernetes.io/rewrite-target annotation) func buildLocation(input interface{}) string { location, ok := input.(*ingress.Location) if !ok { @@ -264,7 +264,7 @@ func buildLogFormatUpstream(input interface{}) string { } // buildProxyPass produces the proxy pass string, if the ingress has redirects -// (specified through the ingress.kubernetes.io/rewrite-to annotation) +// (specified through the ingress.kubernetes.io/rewrite-target annotation) // If the annotation 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(b interface{}, loc interface{}) string {