Skip to content

Commit

Permalink
Log errors from fetching selector rather than silently dropping it.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbartosik committed Oct 30, 2019
1 parent 27cb4d8 commit d70ab95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit d70ab95

Please sign in to comment.