mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
dogged insistence on full verbosity
This commit is contained in:
parent
f1c26bf436
commit
5330bd7440
@ -35,7 +35,7 @@ var MandatoryFlowSchemas = internalizeFSes(bootstrap.MandatoryFlowSchemas)
|
|||||||
// key is the object's name and the value is the
|
// key is the object's name and the value is the
|
||||||
// `*PriorityLevelConfiguration`. Nobody should mutate anything
|
// `*PriorityLevelConfiguration`. Nobody should mutate anything
|
||||||
// reachable from this map.
|
// reachable from this map.
|
||||||
var MandatoryPriorityLevels = internalizePLs(bootstrap.MandatoryPriorityLevelConfigurations)
|
var MandatoryPriorityLevelConfigurations = internalizePLs(bootstrap.MandatoryPriorityLevelConfigurations)
|
||||||
|
|
||||||
func internalizeFSes(exts []*fcv1a1.FlowSchema) map[string]*flowcontrol.FlowSchema {
|
func internalizeFSes(exts []*fcv1a1.FlowSchema) map[string]*flowcontrol.FlowSchema {
|
||||||
ans := make(map[string]*flowcontrol.FlowSchema, len(exts))
|
ans := make(map[string]*flowcontrol.FlowSchema, len(exts))
|
||||||
|
@ -341,7 +341,7 @@ func ValidatePriorityLevelConfiguration(pl *flowcontrol.PriorityLevelConfigurati
|
|||||||
allErrs := apivalidation.ValidateObjectMeta(&pl.ObjectMeta, false, ValidatePriorityLevelConfigurationName, field.NewPath("metadata"))
|
allErrs := apivalidation.ValidateObjectMeta(&pl.ObjectMeta, false, ValidatePriorityLevelConfigurationName, field.NewPath("metadata"))
|
||||||
specPath := field.NewPath("spec")
|
specPath := field.NewPath("spec")
|
||||||
allErrs = append(allErrs, ValidatePriorityLevelConfigurationSpec(&pl.Spec, pl.Name, specPath)...)
|
allErrs = append(allErrs, ValidatePriorityLevelConfigurationSpec(&pl.Spec, pl.Name, specPath)...)
|
||||||
if mand, ok := internalbootstrap.MandatoryPriorityLevels[pl.Name]; ok {
|
if mand, ok := internalbootstrap.MandatoryPriorityLevelConfigurations[pl.Name]; ok {
|
||||||
// Check for almost exact equality. This is a pretty
|
// Check for almost exact equality. This is a pretty
|
||||||
// strict test, and it is OK in this context because both
|
// strict test, and it is OK in this context because both
|
||||||
// sides of this comparison are intended to ultimately
|
// sides of this comparison are intended to ultimately
|
||||||
|
Loading…
Reference in New Issue
Block a user