- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ValidateTolerations (0.36 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) -
pkg/util/tolerations/tolerations_test.go
gen.TolerationSeconds = utilpointer.Int64Ptr(r.Int63n(10)) } // Ensure only valid tolerations are generated. require.NoError(t, validation.ValidateTolerations([]api.Toleration{gen}, field.NewPath("")).ToAggregate(), "%#v", gen) return gen } genTolerations := func() []api.Toleration { result := []api.Toleration{} for i := 0; i < r.Intn(10); i++ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 26 22:25:49 UTC 2019 - 11.4K bytes - Viewed (0) -
pkg/apis/core/validation/validation.go
allErrs = append(allErrs, ValidateDNS1123Subdomain(hostname, fldPath.Index(i).Child("hostnames").Index(j))...) } } return allErrs } // ValidateTolerations tests if given tolerations have valid data. func ValidateTolerations(tolerations []core.Toleration, fldPath *field.Path) field.ErrorList { allErrors := field.ErrorList{} for i, toleration := range tolerations { idxPath := fldPath.Index(i)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 349.5K bytes - Viewed (1)