Skip to content

Commit 1a855fe

Browse files
authored
Merge pull request #171 from dgrisonnet/disable-pnf
Disable priority and fairness by default
2 parents 4f8ac35 + 5255168 commit 1a855fe

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

pkg/cmd/options/options.go

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ func NewCustomMetricsAdapterServerOptions() *CustomMetricsAdapterServerOptions {
5858
EnableMetrics: true,
5959
}
6060

61+
// Explicitly disable Priority and Fairness since metric servers are not
62+
// meant to be queried directly by default.
63+
o.Features.EnablePriorityAndFairness = false
64+
6165
return o
6266
}
6367

test-adapter-deploy/testing-adapter.yaml

-8
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,6 @@ rules:
176176
verbs:
177177
- get
178178
- list
179-
- apiGroups:
180-
- flowcontrol.apiserver.k8s.io
181-
resources:
182-
- prioritylevelconfigurations
183-
- flowschemas
184-
verbs:
185-
- list
186-
- watch
187179
---
188180
apiVersion: rbac.authorization.k8s.io/v1
189181
kind: ClusterRoleBinding

0 commit comments

Comments
 (0)