From bd11d8138ef425ced0953e3fa59bd21ebdec8efc Mon Sep 17 00:00:00 2001 From: Siyu Wang Date: Wed, 16 Feb 2022 11:46:54 +0800 Subject: [PATCH] Fix workloadspread maxReplicas Signed-off-by: Siyu Wang --- internal/store/workloadspread.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/internal/store/workloadspread.go b/internal/store/workloadspread.go index 33b7880..cb9a7d5 100644 --- a/internal/store/workloadspread.go +++ b/internal/store/workloadspread.go @@ -111,24 +111,6 @@ func workloadSpreadMetricFamilies(allowAnnotationsList, allowLabelsList []string } }), ), - *generator.NewFamilyGenerator( - "kruise_workloadspread_spec_subsets_max_replicas", - "The desired max replicas of this subset.", - metric.Gauge, - "", - wrapWorkloadSpreadFunc(func(ws *v1alpha1.WorkloadSpread) *metric.Family { - ms := []*metric.Metric{} - for _, subset := range ws.Spec.Subsets { - ms = append(ms, &metric.Metric{ - LabelKeys: []string{"maxreplicas"}, - LabelValues: []string{subset.MaxReplicas.StrVal}, - }) - } - return &metric.Family{ - Metrics: ms, - } - }), - ), *generator.NewFamilyGenerator( descWorkloadSpreadAnnotationsName, descWorkloadSpreadAnnotationsHelp,