Skip to content

Commit

Permalink
Merge pull request #171 from dgrisonnet/disable-pnf
Browse files Browse the repository at this point in the history
Disable priority and fairness by default
  • Loading branch information
k8s-ci-robot authored Apr 25, 2024
2 parents 4f8ac35 + 5255168 commit 1a855fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 4 additions & 0 deletions pkg/cmd/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
8 changes: 0 additions & 8 deletions test-adapter-deploy/testing-adapter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a855fe

Please sign in to comment.