You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by to...@apache.org on 2021/02/26 09:50:17 UTC

[apisix-ingress-controller] branch master updated: chore: fix whitespace (#273)

This is an automated email from the ASF dual-hosted git repository.

tokers pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git


The following commit(s) were added to refs/heads/master by this push:
     new 2890cf9  chore: fix whitespace (#273)
2890cf9 is described below

commit 2890cf9b58f92b73406ab7a5da5d9c9a82a1f413
Author: John Bampton <jb...@users.noreply.github.com>
AuthorDate: Fri Feb 26 19:50:08 2021 +1000

    chore: fix whitespace (#273)
---
 docs/en/latest/CRD-specification.md | 2 +-
 pkg/kube/translation/ingress.go     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/en/latest/CRD-specification.md b/docs/en/latest/CRD-specification.md
index c694350..87c8930 100644
--- a/docs/en/latest/CRD-specification.md
+++ b/docs/en/latest/CRD-specification.md
@@ -357,6 +357,6 @@ spec:
 | hosts         | array    | The domain list to identify which hosts (matched with SNI) can use the TLS certificate stored in the Secret.  |
 | secret        | object   | The definition of the related Secret object with current ApisixTls object.                               |
 | name          | string   | The name of secret, the secret contains key and cert for `TLS`.       |
-| namespace     | string   | The namespace of secret , the secret contains key and cert for `TLS`.  |
+| namespace     | string   | The namespace of secret, the secret contains key and cert for `TLS`.  |
 
 [Back to top](#crd-types)
diff --git a/pkg/kube/translation/ingress.go b/pkg/kube/translation/ingress.go
index d6fc60b..32eca07 100644
--- a/pkg/kube/translation/ingress.go
+++ b/pkg/kube/translation/ingress.go
@@ -56,7 +56,7 @@ func (t *translator) translateIngressV1(ing *networkingv1.Ingress) ([]*apisixv1.
 			if pathRule.PathType != nil && *pathRule.PathType == networkingv1.PathTypePrefix {
 				// As per the specification of Ingress path matching rule:
 				// if the last element of the path is a substring of the
-				// last element in request path, it is not a match ,e.g. /foo/bar
+				// last element in request path, it is not a match, e.g. /foo/bar
 				// matches /foo/bar/baz, but does not match /foo/barbaz.
 				// While in APISIX, /foo/bar matches both /foo/bar/baz and
 				// /foo/barbaz.
@@ -116,7 +116,7 @@ func (t *translator) translateIngressV1beta1(ing *networkingv1beta1.Ingress) ([]
 			if pathRule.PathType != nil && *pathRule.PathType == networkingv1beta1.PathTypePrefix {
 				// As per the specification of Ingress path matching rule:
 				// if the last element of the path is a substring of the
-				// last element in request path, it is not a match ,e.g. /foo/bar
+				// last element in request path, it is not a match, e.g. /foo/bar
 				// matches /foo/bar/baz, but does not match /foo/barbaz.
 				// While in APISIX, /foo/bar matches both /foo/bar/baz and
 				// /foo/barbaz.