- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ValidateTolerations (0.15 sec)
-
plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/validation/validation.go
allErrs := field.ErrorList{} fldpath := field.NewPath("podtolerationrestriction") allErrs = append(allErrs, validation.ValidateTolerations(config.Default, fldpath.Child("default"))...) allErrs = append(allErrs, validation.ValidateTolerations(config.Whitelist, fldpath.Child("whitelist"))...) if len(allErrs) > 0 { return fmt.Errorf("invalid config: %v", allErrs) } return nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 09 11:14:08 UTC 2017 - 1.3K bytes - Viewed (0) -
pkg/apis/node/validation/validation.go
} allErrs = append(allErrs, validateTolerations(s.Tolerations, fldPath.Child("tolerations"))...) return allErrs } func validateTolerations(tolerations []core.Toleration, fldPath *field.Path) field.ErrorList { allErrs := corevalidation.ValidateTolerations(tolerations, fldPath.Child("tolerations")) // Ensure uniquenes of tolerations.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 10 19:08:24 UTC 2022 - 3.2K bytes - Viewed (0)