Commit 6062e58c authored by John Belamaric's avatar John Belamaric Committed by Miek Gieben

Remove annoying INFO from k8s middleware (#655)

parent 7d39c2ba
...@@ -207,9 +207,7 @@ func (k *Kubernetes) InitKubeCache() error { ...@@ -207,9 +207,7 @@ func (k *Kubernetes) InitKubeCache() error {
} }
} }
if k.LabelSelector == nil { if k.LabelSelector != nil {
log.Printf("[INFO] Kubernetes middleware configured without a label selector. No label-based filtering will be performed.")
} else {
log.Printf("[INFO] Kubernetes middleware configured with the label selector '%s'. Only kubernetes objects matching this label selector will be exposed.", unversionedapi.FormatLabelSelector(k.LabelSelector)) log.Printf("[INFO] Kubernetes middleware configured with the label selector '%s'. Only kubernetes objects matching this label selector will be exposed.", unversionedapi.FormatLabelSelector(k.LabelSelector))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment