Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 53 of 53 for NewBadRequest (0.43 sec)

  1. pkg/registry/core/service/storage/storage.go

    	// Allow ID as "svcname", "svcname:port", or "scheme:svcname:port".
    	svcScheme, svcName, portStr, valid := utilnet.SplitSchemeNamePort(id)
    	if !valid {
    		return nil, nil, errors.NewBadRequest(fmt.Sprintf("invalid service request %q", id))
    	}
    
    	// If a port *number* was specified, find the corresponding service port name
    	if portNum, err := strconv.ParseInt(portStr, 10, 64); err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 13:09:33 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  2. pkg/registry/core/pod/storage/eviction_test.go

    		// t8: This pod should not have a resource conflict.
    		return nil, true, nil
    	}
    	if ms.pod.Name == "t10" {
    		return nil, false, apierrors.NewBadRequest("test designed to error")
    	}
    	if count == 1 {
    		// This is a hack to ensure that some test pods don't change phase
    		// but do change resource version
    		if ms.pod.Name != "t1" && ms.pod.Name != "t5" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 09:26:37 UTC 2024
    - 40K bytes
    - Viewed (0)
  3. pkg/controller/cronjob/cronjob_controllerv2_test.go

    			ranPreviously:              true,
    			stillActive:                true,
    			jobCreationTime:            justAfterThePriorHour(),
    			now:                        *justAfterTheHour(),
    			jobGetErr:                  errors.NewBadRequest("request is invalid"),
    			expectActive:               1,
    			expectedWarnings:           1,
    			jobPresentInCJActiveStatus: true,
    		},
    		"still active, is time, suspended": {
    			concurrencyPolicy:          "Allow",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 70.8K bytes
    - Viewed (0)
Back to top