We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a580fa1 commit 368367cCopy full SHA for 368367c
pkg/autoscaler/poller.go
@@ -6,6 +6,7 @@ import (
6
"github.com/nuclio/errors"
7
"github.com/nuclio/logger"
8
"github.com/v3io/scaler-types"
9
+ k8serrors "k8s.io/apimachinery/pkg/api/errors"
10
"k8s.io/apimachinery/pkg/labels"
11
"k8s.io/apimachinery/pkg/runtime/schema"
12
custommetricsv1 "k8s.io/metrics/pkg/client/custom_metrics"
@@ -59,6 +60,9 @@ func (mp *MetricsPoller) getResourceMetrics() error {
59
60
resourceLabels,
61
mp.metricName)
62
if err != nil {
63
+ if k8serrors.IsNotFound(err) {
64
+ return nil
65
+ }
66
return errors.Wrap(err, "Failed to get custom metrics")
67
}
68
0 commit comments