Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 24 of 24 for NewInvalid (0.25 sec)

  1. 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)
  2. 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)
  3. pkg/controller/history/controller_history_test.go

    				if found == nil {
    					return true, nil, errors.NewNotFound(apps.Resource("controllerrevisions"), test.revision.Name)
    				}
    				if !metav1.IsControlledBy(test.revision, test.parent) {
    					return true, nil, errors.NewInvalid(
    						test.revision.GroupVersionKind().GroupKind(), test.revision.Name, nil)
    				}
    				b, err := strategicpatch.StrategicMergePatch(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 13:31:28 UTC 2023
    - 49.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store.go

    				fieldErrList := field.ErrorList{field.Invalid(field.NewPath("metadata").Child("resourceVersion"), newResourceVersion, "must be specified for an update")}
    				return nil, nil, apierrors.NewInvalid(qualifiedKind, name, fieldErrList)
    			}
    			if newResourceVersion != existingResourceVersion {
    				return nil, nil, apierrors.NewConflict(qualifiedResource, name, fmt.Errorf(OptimisticLockErrorMsg))
    			}
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 23:22:44 UTC 2024
    - 60.8K bytes
    - Viewed (0)
Back to top