You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by zh...@apache.org on 2022/12/26 08:43:29 UTC
[apisix-ingress-controller] branch master updated: chore: extra annotations logs (#1549)
This is an automated email from the ASF dual-hosted git repository.
zhangjintao 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 e734b2d7 chore: extra annotations logs (#1549)
e734b2d7 is described below
commit e734b2d702a7356ca1e4cc4b7770771d93bf03e0
Author: Xin Rong <al...@gmail.com>
AuthorDate: Mon Dec 26 16:43:23 2022 +0800
chore: extra annotations logs (#1549)
Co-authored-by: rongxin <al...@apache.org>
---
.../ingress/translation/annotations/upstreamscheme/upstreamscheme.go | 3 +++
1 file changed, 3 insertions(+)
diff --git a/pkg/providers/ingress/translation/annotations/upstreamscheme/upstreamscheme.go b/pkg/providers/ingress/translation/annotations/upstreamscheme/upstreamscheme.go
index 2e183c4f..f9ce46b6 100644
--- a/pkg/providers/ingress/translation/annotations/upstreamscheme/upstreamscheme.go
+++ b/pkg/providers/ingress/translation/annotations/upstreamscheme/upstreamscheme.go
@@ -30,6 +30,9 @@ func NewParser() annotations.IngressAnnotationsParser {
func (w *upstreamscheme) Parse(e annotations.Extractor) (interface{}, error) {
scheme := strings.ToLower(e.GetStringAnnotation(annotations.AnnotationsUpstreamScheme))
+ if scheme == "" {
+ return nil, nil
+ }
_, ok := apisixv1.ValidSchemes[scheme]
if ok {
return scheme, nil