From 8046b8f4e81e69314c0bd63f92f7242142346efc Mon Sep 17 00:00:00 2001 From: Joachim Bartosik Date: Wed, 30 Oct 2019 15:10:12 +0100 Subject: [PATCH] Log errors from fetching selector rather than silently dropping it. --- .../pkg/admission-controller/logic/recommendation_provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vertical-pod-autoscaler/pkg/admission-controller/logic/recommendation_provider.go b/vertical-pod-autoscaler/pkg/admission-controller/logic/recommendation_provider.go index 7d81c28b93a3..f0edf207b8f1 100644 --- a/vertical-pod-autoscaler/pkg/admission-controller/logic/recommendation_provider.go +++ b/vertical-pod-autoscaler/pkg/admission-controller/logic/recommendation_provider.go @@ -91,7 +91,7 @@ func (p *recommendationProvider) getMatchingVPA(pod *core.Pod) *vpa_types.Vertic } selector, err := p.selectorFetcher.Fetch(vpaConfig) if err != nil { - klog.V(3).Infof("skipping VPA object %v because we cannot fetch selector", vpaConfig.Name) + klog.V(3).Infof("skipping VPA object %v because we cannot fetch selector: %s", vpaConfig.Name, err) continue } onConfigs = append(onConfigs, &vpa_api_util.VpaWithSelector{