| commit | e734b2d702a7356ca1e4cc4b7770771d93bf03e0 | [log] [tgz] |
|---|---|---|
| author | Xin Rong <alinsran333@gmail.com> | Mon Dec 26 16:43:23 2022 +0800 |
| committer | GitHub <noreply@github.com> | Mon Dec 26 16:43:23 2022 +0800 |
| tree | 0b3e4336fbd4626a1ac5d0d4c6dea628bb9a6af7 | |
| parent | 60061d05148c979a85ea6db4e596fa8172726173 [diff] |
chore: extra annotations logs (#1549) Co-authored-by: rongxin <alinsran@apache.org>
diff --git a/pkg/providers/ingress/translation/annotations/upstreamscheme/upstreamscheme.go b/pkg/providers/ingress/translation/annotations/upstreamscheme/upstreamscheme.go index 2e183c4..f9ce46b 100644 --- a/pkg/providers/ingress/translation/annotations/upstreamscheme/upstreamscheme.go +++ b/pkg/providers/ingress/translation/annotations/upstreamscheme/upstreamscheme.go
@@ -30,6 +30,9 @@ 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