- Sort Score
- Result 10 results
- Languages All
Results 11 - 15 of 15 for NewInvalid (0.22 sec)
-
pkg/registry/core/replicationcontroller/storage/storage.go
return nil, errors.NewBadRequest(fmt.Sprintf("expected input object type to be Scale, but %T", newScaleObj)) } // validate if errs := validation.ValidateScale(scale); len(errs) > 0 { return nil, errors.NewInvalid(autoscaling.Kind("Scale"), replicationcontroller.Name, errs) } // validate precondition if specified (resourceVersion matching is handled by storage) if len(scale.UID) > 0 && scale.UID != replicationcontroller.UID {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 12K bytes - Viewed (0) -
pkg/registry/apps/replicaset/storage/storage.go
} // validate if errs := autoscalingvalidation.ValidateScale(scale); len(errs) > 0 { return nil, errors.NewInvalid(autoscaling.Kind("Scale"), replicaset.Name, errs) } // validate precondition if specified (resourceVersion matching is handled by storage) if len(scale.UID) > 0 && scale.UID != replicaset.UID {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 12.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/rest/update.go
if err != nil { return errors.NewInternalError(err) } errs = append(errs, strategy.ValidateUpdate(ctx, obj, old)...) if len(errs) > 0 { return errors.NewInvalid(kind.GroupKind(), objectMeta.GetName(), errs) } for _, w := range strategy.WarningsOnUpdate(ctx, obj, old) { warning.AddWarning(ctx, "", w) } strategy.Canonicalize(obj) return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 27 11:48:28 UTC 2022 - 11.8K bytes - Viewed (0) -
pkg/registry/apps/statefulset/storage/storage.go
} // validate if errs := autoscalingvalidation.ValidateScale(scale); len(errs) > 0 { return nil, errors.NewInvalid(autoscaling.Kind("Scale"), statefulset.Name, errs) } // validate precondition if specified (resourceVersion matching is handled by storage) if len(scale.UID) > 0 && scale.UID != statefulset.UID {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 12.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go
Status: metav1.StatusFailure, Code: http.StatusGone, Reason: metav1.StatusReasonExpired, Message: message, }} } // NewInvalid returns an error indicating the item is invalid and cannot be processed. func NewInvalid(qualifiedKind schema.GroupKind, name string, errs field.ErrorList) *StatusError { causes := make([]metav1.StatusCause, 0, len(errs)) for i := range errs { err := errs[i]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 21 03:41:32 UTC 2022 - 30.5K bytes - Viewed (0)