From 05d6d6a2e5c79ae245fa6db3462d3fa0ee43fbe1 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Thu, 12 Jul 2018 16:12:32 +0200 Subject: [PATCH] k8s SD: Fix "schema" -> "scheme" typo (#4371) Signed-off-by: Julius Volz --- discovery/kubernetes/ingress.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discovery/kubernetes/ingress.go b/discovery/kubernetes/ingress.go index 0ff3b0e0a..2a6e1e335 100644 --- a/discovery/kubernetes/ingress.go +++ b/discovery/kubernetes/ingress.go @@ -186,16 +186,16 @@ func (s *Ingress) buildIngress(ingress *v1beta1.Ingress) *targetgroup.Group { for _, rule := range ingress.Spec.Rules { paths := pathsFromIngressRule(&rule.IngressRuleValue) - schema := "http" + scheme := "http" _, isTLS := tlsHosts[rule.Host] if isTLS { - schema = "https" + scheme = "https" } for _, path := range paths { tg.Targets = append(tg.Targets, model.LabelSet{ model.AddressLabel: lv(rule.Host), - ingressSchemeLabel: lv(schema), + ingressSchemeLabel: lv(scheme), ingressHostLabel: lv(rule.Host), ingressPathLabel: lv(path), })