From d85dcc3dfd190925dbbe4e12c2b31033b12af593 Mon Sep 17 00:00:00 2001 From: jackhopner Date: Fri, 26 Jan 2018 15:45:00 +0000 Subject: [PATCH] use correct provider/class --- pkg/provider/nginx/nginx.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkg/provider/nginx/nginx.go b/pkg/provider/nginx/nginx.go index 13cefa23..9e0ebe16 100644 --- a/pkg/provider/nginx/nginx.go +++ b/pkg/provider/nginx/nginx.go @@ -120,11 +120,9 @@ func (p *Nginx) updateIngress() error { ing.Annotations = map[string]string{ kubelego.AnnotationIngressChallengeEndpoints: "true", kubelego.AnnotationSslRedirect: "false", - // TODO: use the ingres class as specified on the ingress we are - // requesting a certificate for - kubelego.AnnotationIngressClass: p.kubelego.LegoDefaultIngressClass(), - kubelego.AnnotationIngressProvider: p.kubelego.LegoDefaultIngressProvider(), - kubelego.AnnotationWhitelistSourceRange: "0.0.0.0/0,::/0", + kubelego.AnnotationIngressClass: p.ingress.IngressClass(), + kubelego.AnnotationIngressProvider: p.ingress.IngressProvider(), + kubelego.AnnotationWhitelistSourceRange: "0.0.0.0/0,::/0", } ing.Spec = k8sExtensions.IngressSpec{