mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
APF defaults.go: use already defined catch-all name constant
Signed-off-by: Adhityaa Chandrasekar <adtac@google.com>
This commit is contained in:
parent
59ac565dbf
commit
5d2fdde120
@ -83,7 +83,7 @@ var (
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
MandatoryPriorityLevelConfigurationCatchAll = newPriorityLevelConfiguration(
|
MandatoryPriorityLevelConfigurationCatchAll = newPriorityLevelConfiguration(
|
||||||
"catch-all",
|
flowcontrol.PriorityLevelConfigurationNameCatchAll,
|
||||||
flowcontrol.PriorityLevelConfigurationSpec{
|
flowcontrol.PriorityLevelConfigurationSpec{
|
||||||
Type: flowcontrol.PriorityLevelEnablementLimited,
|
Type: flowcontrol.PriorityLevelEnablementLimited,
|
||||||
Limited: &flowcontrol.LimitedPriorityLevelConfiguration{
|
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
|
// "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".
|
// ideally unless you intentionally deleted the suggested "global-default".
|
||||||
MandatoryFlowSchemaCatchAll = newFlowSchema(
|
MandatoryFlowSchemaCatchAll = newFlowSchema(
|
||||||
"catch-all",
|
flowcontrol.FlowSchemaNameCatchAll,
|
||||||
"catch-all",
|
flowcontrol.PriorityLevelConfigurationNameCatchAll,
|
||||||
10000, // matchingPrecedence
|
10000, // matchingPrecedence
|
||||||
flowcontrol.FlowDistinguisherMethodByUserType, // distinguisherMethodType
|
flowcontrol.FlowDistinguisherMethodByUserType, // distinguisherMethodType
|
||||||
flowcontrol.PolicyRulesWithSubjects{
|
flowcontrol.PolicyRulesWithSubjects{
|
||||||
|
Loading…
Reference in New Issue
Block a user