Skip to content

Commit

Permalink
Merge pull request #122 from kawych/real_master
Browse files Browse the repository at this point in the history
Fix small mistake in Custom Metrics - Stackdriver Adapter
  • Loading branch information
kawych authored Mar 14, 2018
2 parents 8c24447 + 513d3af commit e76842e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (p *StackdriverProvider) GetRootScopedMetricBySelector(groupResource schema
// GetNamespacedMetricByName queries Stackdriver for metrics identified by name and associated
// with a namespace.
func (p *StackdriverProvider) GetNamespacedMetricByName(groupResource schema.GroupResource, namespace string, name string, metricName string) (*custom_metrics.MetricValue, error) {
if groupResource.Resource != nodeResource {
if groupResource.Resource != podResource {
return nil, provider.NewOperationNotSupportedError(fmt.Sprintf("Get namespaced metric by name for resource %q", groupResource.Resource))
}
matchingPod, err := p.kubeClient.Pods(namespace).Get(name, metav1.GetOptions{})
Expand Down

0 comments on commit e76842e

Please sign in to comment.