Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 77 for StatusOK (0.16 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/watch.go

    	timeoutCh, cleanup := s.TimeoutFactory.TimeoutCh()
    	defer cleanup()
    
    	// begin the stream
    	w.Header().Set("Content-Type", s.MediaType)
    	w.Header().Set("Transfer-Encoding", "chunked")
    	w.WriteHeader(http.StatusOK)
    	flusher.Flush()
    
    	kind := s.Scope.Kind
    	watchEncoder := newWatchEncoder(req.Context(), kind, s.EmbeddedEncoder, s.Encoder, framer)
    	ch := s.Watching.ResultChan()
    	done := req.Context().Done()
    
    	for {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 14 16:37:25 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  2. pkg/spiffe/spiffe.go

    				errMsg = fmt.Sprintf("Calling %s failed with error: %v", endpoint, err)
    			} else if resp == nil {
    				errMsg = fmt.Sprintf("Calling %s failed with nil response", endpoint)
    			} else if resp.StatusCode != http.StatusOK {
    				b := make([]byte, 1024)
    				n, _ := resp.Body.Read(b)
    				errMsg = fmt.Sprintf("Calling %s failed with unexpected status: %v, fetching bundle: %s",
    					endpoint, resp.StatusCode, string(b[:n]))
    			} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/reconcilers/peer_endpoint_lease.go

    	wait.PollImmediateUntil(100*time.Millisecond, func() (bool, error) {
    		var code int
    		c.client.CoreV1().RESTClient().Get().AbsPath("/readyz").Do(context.TODO()).StatusCode(&code)
    		return code == http.StatusOK, nil
    	}, stopCh)
    
    	wait.NonSlidingUntil(func() {
    		if err := c.UpdatePeerEndpointLeases(); err != nil {
    			runtime.HandleError(fmt.Errorf("unable to update peer endpoint leases: %v", err))
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  4. pkg/scheduler/extender.go

    		return err
    	}
    
    	req.Header.Set("Content-Type", "application/json")
    
    	resp, err := h.client.Do(req)
    	if err != nil {
    		return err
    	}
    	defer resp.Body.Close()
    
    	if resp.StatusCode != http.StatusOK {
    		return fmt.Errorf("failed %v with extender at URL %v, code %v", action, url, resp.StatusCode)
    	}
    
    	return json.NewDecoder(resp.Body).Decode(result)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 19:07:19 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. cmd/bucket-policy-handlers_test.go

    		{
    			bucketName:           bucketName,
    			accessKey:            credentials.AccessKey,
    			secretKey:            credentials.SecretKey,
    			expectedBucketPolicy: bucketPolicyTemplate,
    			expectedRespStatus:   http.StatusOK,
    		},
    		// Test case - 2.
    		// Case with non-existent bucket name.
    		{
    			bucketName:           "non-existent-bucket",
    			accessKey:            credentials.AccessKey,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  6. cmd/s3-zip-handlers.go

    	// s3zip does not allow ranges.
    	w.Header().Del(xhttp.AcceptRanges)
    
    	// Set any additional requested response headers.
    	setHeadGetRespHeaders(w, r.Form)
    
    	// Successful response.
    	w.WriteHeader(http.StatusOK)
    }
    
    // Update the passed zip object metadata with the zip contents info, file name, modtime, size, etc.
    // The returned zip index will de decrypted.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/handler.go

    		// not cached with the object for some reason.
    		responsewriters.WriteObjectNegotiated(
    			rdm.serializer,
    			DiscoveryEndpointRestrictions,
    			targetGV,
    			resp,
    			req,
    			http.StatusOK,
    			&response,
    			true,
    		)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 00:29:39 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  8. cni/pkg/plugin/plugin_test.go

    		cniAddServerCalled = true
    		if serverErr {
    			res.WriteHeader(http.StatusInternalServerError)
    			res.Write([]byte("server not happy"))
    			return
    		}
    		res.WriteHeader(http.StatusOK)
    		res.Write([]byte("server happy"))
    	}))
    
    	return testServer.URL, func() bool {
    		testServer.Close()
    		return cniAddServerCalled
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  9. internal/logger/target/http/http.go

    		return fmt.Errorf("%s returned '%w', please check your endpoint configuration", h.Endpoint(), err)
    	}
    
    	// Drain any response.
    	xhttp.DrainBody(resp.Body)
    
    	switch resp.StatusCode {
    	case http.StatusOK, http.StatusCreated, http.StatusAccepted, http.StatusNoContent:
    		// accepted HTTP status codes.
    		return nil
    	case http.StatusForbidden:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jun 02 03:03:39 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  10. pkg/registry/apps/deployment/storage/storage.go

    	if err != nil {
    		return nil, err
    	}
    	return &metav1.Status{
    		Status:  metav1.StatusSuccess,
    		Message: fmt.Sprintf("rollback request for deployment %q succeeded", rollback.Name),
    		Code:    http.StatusOK,
    	}, nil
    }
    
    func (r *RollbackREST) rollbackDeployment(ctx context.Context, deploymentID string, config *apps.RollbackConfig, annotations map[string]string, dryRun bool) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 16.8K bytes
    - Viewed (0)
Back to top