From 55facfa9f5cfb8e24fa3f162cc57169ee30b548c Mon Sep 17 00:00:00 2001 From: Antoine Cotten Date: Fri, 20 Apr 2018 16:00:33 +0200 Subject: [PATCH] Silence unnecessary MissingAnnotations errors --- internal/ingress/controller/store/store.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/ingress/controller/store/store.go b/internal/ingress/controller/store/store.go index 91ecaa87c8..d5a0568cd8 100644 --- a/internal/ingress/controller/store/store.go +++ b/internal/ingress/controller/store/store.go @@ -47,6 +47,7 @@ import ( ngx_config "k8s.io/ingress-nginx/internal/ingress/controller/config" ngx_template "k8s.io/ingress-nginx/internal/ingress/controller/template" "k8s.io/ingress-nginx/internal/ingress/defaults" + "k8s.io/ingress-nginx/internal/ingress/errors" "k8s.io/ingress-nginx/internal/ingress/resolver" "k8s.io/ingress-nginx/internal/k8s" ) @@ -539,7 +540,7 @@ func (s *k8sStore) updateSecretIngressMap(ing *extensions.Ingress) { } for _, ann := range secretAnnotations { secrKey, err := objectRefAnnotationNsKey(ann, ing) - if err != nil { + if err != nil && !errors.IsMissingAnnotations(err) { glog.Errorf("error reading secret reference in annotation %q: %s", ann, err) continue }