Skip to content

Commit

Permalink
Remove pod metrics watch permission
Browse files Browse the repository at this point in the history
  • Loading branch information
linkas45 committed Nov 21, 2023
1 parent 54818e7 commit d0fccf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/services/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
Expand Down

0 comments on commit d0fccf7

Please sign in to comment.