- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for validateProbe (0.13 sec)
-
pkg/apis/core/validation/validation.go
if probe == nil { return allErrs } allErrs = append(allErrs, validateProbe(probe, gracePeriod, fldPath)...) if probe.SuccessThreshold != 1 { allErrs = append(allErrs, field.Invalid(fldPath.Child("successThreshold"), probe.SuccessThreshold, "must be 1")) } return allErrs } func validateProbe(probe *core.Probe, gracePeriod int64, fldPath *field.Path) field.ErrorList {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 349.5K bytes - Viewed (0) -
pkg/apis/core/validation/validation_test.go
t.Run(tt.name, func(t *testing.T) { got := validateProbe(tt.args.probe, defaultGracePeriod, tt.args.fldPath) if len(got) != len(tt.want) { t.Errorf("validateProbe() = %v, want %v", got, tt.want) return } for i := range got { if got[i].Type != tt.want[i].Type || got[i].Field != tt.want[i].Field { t.Errorf("validateProbe()[%d] = %v, want %v", i, got[i], tt.want[i]) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 857.7K bytes - Viewed (0)