Skip to content

Commit

Permalink
Merge pull request #147 from castai/fix-pod-metrics-informer
Browse files Browse the repository at this point in the history
Remove pod metrics watch permission
  • Loading branch information
linkas45 authored Nov 21, 2023
2 parents 54818e7 + d0fccf7 commit 20c30a8
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 20c30a8

Please sign in to comment.