From d744c2eba78e084801907bb79af694defa7c487d Mon Sep 17 00:00:00 2001 From: "Daniel (Shijun) Qian" Date: Thu, 14 Dec 2017 01:29:41 +0800 Subject: [PATCH] Fix annotation describe (#1819) --- docs/examples/rewrite/README.md | 2 +- internal/ingress/annotations/rewrite/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/examples/rewrite/README.md b/docs/examples/rewrite/README.md index c46e304e3b..a1812533ab 100644 --- a/docs/examples/rewrite/README.md +++ b/docs/examples/rewrite/README.md @@ -19,7 +19,7 @@ Rewriting can be controlled using the following annotations: |nginx.ingress.kubernetes.io/base-url-scheme|Override for the scheme passed to the base tag|string| |nginx.ingress.kubernetes.io/ssl-redirect|Indicates if the location section is accessible SSL only (defaults to True when Ingress contains a Certificate)|bool| |nginx.ingress.kubernetes.io/force-ssl-redirect|Forces the redirection to HTTPS even if the Ingress is not TLS Enabled|bool| -|nginx.ingress.kubernetes.io/app-root|Defines the Application Root that the Controller must redirect if it's not in '/' context|string| +|nginx.ingress.kubernetes.io/app-root|Defines the Application Root that the Controller must redirect if it's in '/' context|string| ## Validation diff --git a/internal/ingress/annotations/rewrite/main.go b/internal/ingress/annotations/rewrite/main.go index 2f222a5099..a1624549ee 100644 --- a/internal/ingress/annotations/rewrite/main.go +++ b/internal/ingress/annotations/rewrite/main.go @@ -36,7 +36,7 @@ type Config struct { SSLRedirect bool `json:"sslRedirect"` // ForceSSLRedirect indicates if the location section is accessible SSL only ForceSSLRedirect bool `json:"forceSSLRedirect"` - // AppRoot defines the Application Root that the Controller must redirect if it's not in '/' context + // AppRoot defines the Application Root that the Controller must redirect if it's in '/' context AppRoot string `json:"appRoot"` }