From 377c173e9194a397832f61193a38dffacf248cce Mon Sep 17 00:00:00 2001 From: D074096 Date: Wed, 20 Apr 2022 15:45:29 +0200 Subject: [PATCH] Skip unknown owners in TouchShuffles --- metrics/metrics.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/metrics/metrics.go b/metrics/metrics.go index ba7aba6..f6b6dde 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -193,6 +193,8 @@ func TouchShuffles(ctx context.Context, k8sClient client.Client, node *v1.Node, return err } labels = makeLabels(owner, currentProfile) + default: + continue } shuffleCount.With(labels).Add(0) shufflesPerReplica.With(labels).Add(0)