From d0fccf72749071c7b9af6120e4d9305120a2d5e6 Mon Sep 17 00:00:00 2001 From: linkas45 Date: Tue, 21 Nov 2023 08:22:22 +0000 Subject: [PATCH] Remove pod metrics watch permission --- internal/services/controller/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/controller/controller.go b/internal/services/controller/controller.go index 843a88c9..9826e412 100644 --- a/internal/services/controller/controller.go +++ b/internal/services/controller/controller.go @@ -498,7 +498,7 @@ func getConditionalInformers(f informers.SharedInformerFactory, df dynamicinform { resource: v1beta1.SchemeGroupVersion.WithResource("pods"), apiType: reflect.TypeOf(&v1beta1.PodMetrics{}), - permissionVerbs: []string{"get", "list", "watch"}, + permissionVerbs: []string{"get", "list"}, informerFactory: func() cache.SharedIndexInformer { return custominformers.NewPodMetricsInformer(logger, metricsClient) },