- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ValidateHorizontalPodAutoscaler (0.25 sec)
-
pkg/apis/autoscaling/validation/validation_test.go
Value: 7, PeriodSeconds: 8, }}, }, }} for _, behavior := range successCases { hpa := prepareHPAWithBehavior(behavior) if errs := ValidateHorizontalPodAutoscaler(&hpa); len(errs) != 0 { t.Errorf("expected success: %v", errs) } } errorCases := []struct { behavior autoscaling.HorizontalPodAutoscalerBehavior msg string }{{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 56.7K bytes - Viewed (0) -
pkg/registry/autoscaling/horizontalpodautoscaler/strategy.go
} // Validate validates a new autoscaler. func (autoscalerStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList { autoscaler := obj.(*autoscaling.HorizontalPodAutoscaler) return validation.ValidateHorizontalPodAutoscaler(autoscaler) } // WarningsOnCreate returns warnings for the creation of the given object. func (autoscalerStrategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 02 04:51:00 UTC 2024 - 5.4K bytes - Viewed (0) -
pkg/apis/autoscaling/validation/validation.go
allErrs = append(allErrs, field.Invalid(fldPath.Child("name"), ref.Name, msg)) } } return allErrs } // ValidateHorizontalPodAutoscaler validates a HorizontalPodAutoscaler and returns an // ErrorList with any errors. func ValidateHorizontalPodAutoscaler(autoscaler *autoscaling.HorizontalPodAutoscaler) field.ErrorList {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Feb 25 00:58:00 UTC 2024 - 19.4K bytes - Viewed (0)