- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for NewInvalid (0.23 sec)
-
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/delete.go
err = errors.NewBadRequest(err.Error()) scope.err(err, w, req) return } } } if errs := validation.ValidateDeleteOptions(options); len(errs) > 0 { err := errors.NewInvalid(schema.GroupKind{Group: metav1.GroupName, Kind: "DeleteOptions"}, "", errs) scope.err(err, w, req) return } options.TypeMeta.SetGroupVersionKind(metav1.SchemeGroupVersion.WithKind("DeleteOptions"))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 01 10:00:32 UTC 2023 - 11.4K bytes - Viewed (0) -
pkg/registry/core/serviceaccount/storage/token.go
return nil, errors.NewInvalid(gvk.GroupKind(), name, errs) } if len(req.Namespace) > 0 && req.Namespace != namespace { errs := field.ErrorList{field.Invalid(field.NewPath("metadata").Child("namespace"), req.Namespace, "must match the service account namespace if specified")} return nil, errors.NewInvalid(gvk.GroupKind(), name, errs) } // Lookup service account
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 05 10:24:31 UTC 2024 - 10K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go
err = errors.NewBadRequest(err.Error()) scope.err(err, w, req) return } if errs := validation.ValidatePatchOptions(options, patchType); len(errs) > 0 { err := errors.NewInvalid(schema.GroupKind{Group: metav1.GroupName, Kind: "PatchOptions"}, "", errs) scope.err(err, w, req) return } options.TypeMeta.SetGroupVersionKind(metav1.SchemeGroupVersion.WithKind("PatchOptions"))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 28.5K bytes - Viewed (0) -
pkg/registry/authorization/subjectaccessreview/rest.go
if !ok { return nil, apierrors.NewBadRequest(fmt.Sprintf("not a SubjectAccessReview: %#v", obj)) } if errs := authorizationvalidation.ValidateSubjectAccessReview(subjectAccessReview); len(errs) > 0 { return nil, apierrors.NewInvalid(authorizationapi.Kind(subjectAccessReview.Kind), "", errs) } if createValidation != nil { if err := createValidation(ctx, obj.DeepCopyObject()); err != nil { return nil, err } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 18 09:21:13 UTC 2022 - 2.7K bytes - Viewed (0) -
pkg/registry/authorization/localsubjectaccessreview/rest.go
} if errs := authorizationvalidation.ValidateLocalSubjectAccessReview(localSubjectAccessReview); len(errs) > 0 { return nil, apierrors.NewInvalid(authorizationapi.Kind(localSubjectAccessReview.Kind), "", errs) } namespace := genericapirequest.NamespaceValue(ctx) if len(namespace) == 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 18 09:21:13 UTC 2022 - 3.2K bytes - Viewed (0) -
pkg/registry/authorization/selfsubjectaccessreview/rest.go
if !ok { return nil, apierrors.NewBadRequest(fmt.Sprintf("not a SelfSubjectAccessReview: %#v", obj)) } if errs := authorizationvalidation.ValidateSelfSubjectAccessReview(selfSAR); len(errs) > 0 { return nil, apierrors.NewInvalid(authorizationapi.Kind(selfSAR.Kind), "", errs) } userToCheck, exists := genericapirequest.UserFrom(ctx) if !exists { return nil, apierrors.NewBadRequest("no user present on request") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 18 09:21:13 UTC 2022 - 3.1K bytes - Viewed (0) -
pkg/registry/core/service/storage/alloc.go
// TODO(thockin): when we tighten validation (e.g. to require IPs) we will // need a "strict" and a "loose" form of this. if el := validation.ValidateServiceClusterIPsRelatedFields(service); len(el) != 0 { return errors.NewInvalid(api.Kind("Service"), service.Name, el) } //TODO(thockin): Move this logic to validation? el := make(field.ErrorList, 0) // Update-only prep work. if oldService != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:05 UTC 2023 - 37.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/rest/create.go
return err } strategy.PrepareForCreate(ctx, obj) if errs := strategy.Validate(ctx, obj); len(errs) > 0 { return errors.NewInvalid(kind.GroupKind(), objectMeta.GetName(), errs) } // Custom validation (including name validation) passed // Now run common validation on object meta
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 27 11:48:28 UTC 2022 - 9.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/errors/storage.go
func InterpretWatchError(err error, resource schema.GroupResource, name string) error { switch { case storage.IsInvalidError(err): invalidError, _ := err.(storage.InvalidError) return errors.NewInvalid(schema.GroupKind{Group: resource.Group, Kind: resource.Resource}, name, invalidError.Errs) case storage.IsInternalError(err): return errors.NewInternalError(err) default: return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 08 15:39:10 UTC 2023 - 4.2K bytes - Viewed (0) -
pkg/registry/core/pod/rest/log.go
return nil, fmt.Errorf("invalid options object: %#v", opts) } countSkipTLSMetric(logOpts.InsecureSkipTLSVerifyBackend) if errs := validation.ValidatePodLogOptions(logOpts); len(errs) > 0 { return nil, errors.NewInvalid(api.Kind("PodLogOptions"), name, errs) } location, transport, err := pod.LogLocation(ctx, r.Store, r.KubeletConn, name, logOpts) if err != nil { return nil, err } return &genericrest.LocationStreamer{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 24 10:50:43 UTC 2023 - 4.4K bytes - Viewed (0)