From 5d2fdde1202e65bcc66ad1c038d5fe84e7dbad9a Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Wed, 18 Nov 2020 18:58:45 +0000 Subject: [PATCH] APF defaults.go: use already defined catch-all name constant Signed-off-by: Adhityaa Chandrasekar --- .../apiserver/pkg/apis/flowcontrol/bootstrap/default.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/staging/src/k8s.io/apiserver/pkg/apis/flowcontrol/bootstrap/default.go b/staging/src/k8s.io/apiserver/pkg/apis/flowcontrol/bootstrap/default.go index f3e9a1a7bd3..b4fbb28c384 100644 --- a/staging/src/k8s.io/apiserver/pkg/apis/flowcontrol/bootstrap/default.go +++ b/staging/src/k8s.io/apiserver/pkg/apis/flowcontrol/bootstrap/default.go @@ -83,7 +83,7 @@ var ( }, ) MandatoryPriorityLevelConfigurationCatchAll = newPriorityLevelConfiguration( - "catch-all", + flowcontrol.PriorityLevelConfigurationNameCatchAll, flowcontrol.PriorityLevelConfigurationSpec{ Type: flowcontrol.PriorityLevelEnablementLimited, Limited: &flowcontrol.LimitedPriorityLevelConfiguration{ @@ -126,8 +126,8 @@ var ( // "catch-all" priority-level only gets a minimal positive share of concurrency and won't be reaching // ideally unless you intentionally deleted the suggested "global-default". MandatoryFlowSchemaCatchAll = newFlowSchema( - "catch-all", - "catch-all", + flowcontrol.FlowSchemaNameCatchAll, + flowcontrol.PriorityLevelConfigurationNameCatchAll, 10000, // matchingPrecedence flowcontrol.FlowDistinguisherMethodByUserType, // distinguisherMethodType flowcontrol.PolicyRulesWithSubjects{