Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for NewBadRequest (0.15 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/structuredmerge.go

    	// Check that the patch object has the same version as the live object
    	if patchVersion := patchObj.GetObjectKind().GroupVersionKind().GroupVersion(); patchVersion != f.groupVersion {
    		return nil, nil,
    			errors.NewBadRequest(
    				fmt.Sprintf("Incorrect version specified in apply patch. "+
    					"Specified patch version: %s, expected: %s",
    					patchVersion, f.groupVersion))
    	}
    
    	patchObjMeta, err := meta.Accessor(patchObj)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:55:50 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  2. pkg/registry/core/node/strategy.go

    	if !valid {
    		return nil, nil, errors.NewBadRequest(fmt.Sprintf("invalid node request %q", id))
    	}
    
    	info, err := connection.GetConnectionInfo(ctx, types.NodeName(name))
    	if err != nil {
    		return nil, nil, err
    	}
    
    	if err := isProxyableHostname(ctx, info.Hostname); err != nil {
    		return nil, nil, errors.NewBadRequest(err.Error())
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 23:06:39 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/namer.go

    	if err != nil {
    		return "", "", err
    	}
    	return namespace, name, err
    }
    
    // errEmptyName is returned when API requests do not fill the name section of the path.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 14 10:11:56 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/endpoints/filters/request_deadline.go

    			return
    		}
    		if longRunning(req, requestInfo) {
    			handler.ServeHTTP(w, req)
    			return
    		}
    
    		userSpecifiedTimeout, ok, err := parseTimeout(req)
    		if err != nil {
    			statusErr := apierrors.NewBadRequest(err.Error())
    
    			klog.Errorf("Error - %s: %#v", err.Error(), req.RequestURI)
    
    			failed := failedErrorHandler(negotiatedSerializer, statusErr)
    			failWithAudit := withFailedRequestAudit(failed, statusErr, sink, policy)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 05 21:12:12 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. plugin/pkg/admission/runtimeclass/admission.go

    	pod, ok := attributes.GetObject().(*api.Pod)
    	if !ok {
    		return nil, nil, apierrors.NewBadRequest("Resource was marked with kind Pod but was unable to be converted")
    	}
    
    	if pod.Spec.RuntimeClassName == nil {
    		return pod, nil, nil
    	}
    
    	// get RuntimeClass object
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 05 05:53:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top