From 52551686c13bf4876221d29a186b4bfed1166652 Mon Sep 17 00:00:00 2001 From: Damien Grisonnet Date: Thu, 25 Apr 2024 17:32:48 +0200 Subject: [PATCH] Disable priority and fairness by default Signed-off-by: Damien Grisonnet --- pkg/cmd/options/options.go | 4 ++++ test-adapter-deploy/testing-adapter.yaml | 8 -------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/pkg/cmd/options/options.go b/pkg/cmd/options/options.go index 12ff5a4e..5034887b 100644 --- a/pkg/cmd/options/options.go +++ b/pkg/cmd/options/options.go @@ -58,6 +58,10 @@ func NewCustomMetricsAdapterServerOptions() *CustomMetricsAdapterServerOptions { EnableMetrics: true, } + // Explicitly disable Priority and Fairness since metric servers are not + // meant to be queried directly by default. + o.Features.EnablePriorityAndFairness = false + return o } diff --git a/test-adapter-deploy/testing-adapter.yaml b/test-adapter-deploy/testing-adapter.yaml index 28ef7681..26421e82 100644 --- a/test-adapter-deploy/testing-adapter.yaml +++ b/test-adapter-deploy/testing-adapter.yaml @@ -176,14 +176,6 @@ rules: verbs: - get - list -- apiGroups: - - flowcontrol.apiserver.k8s.io - resources: - - prioritylevelconfigurations - - flowschemas - verbs: - - list - - watch --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding