Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for apiStatus (0.13 sec)

  1. pkg/kubelet/kubelet_test.go

    		ID:        pod.UID,
    		Name:      pod.Name,
    		Namespace: pod.Namespace,
    	}
    	apiStatus := kubelet.generateAPIPodStatus(pod, status, false)
    	require.Equal(t, v1.PodFailed, apiStatus.Phase)
    	require.Equal(t, "Evicted", apiStatus.Reason)
    	require.Equal(t, "because", apiStatus.Message)
    }
    
    func TestSyncTerminatingPodKillPod(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go

    		},
    	}
    	for _, testCase := range testCases {
    		err := transformDecodeError(testCase.typer, testCase.baseErr, testCase.decodeIntoObject, testCase.decodedGVK, []byte(``))
    		if apiStatus, ok := err.(apierrors.APIStatus); !ok || apiStatus.Status().Code != http.StatusBadRequest {
    			t.Errorf("expected bad request error but got: %v", err)
    		}
    	}
    }
    
    var _ runtime.ObjectTyper = alwaysErrorTyper{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  3. .idea/inspectionProfiles/Gradle.xml

              <option value="org.apache.http.annotation.Beta" />
              <option value="org.gradle.api.Incubating" />
              <option value="org.jetbrains.annotations.ApiStatus.Experimental" />
              <option value="rx.annotations.Beta" />
              <option value="rx.annotations.Experimental" />
            </set>
          </option>
        </inspection_tool>
      </profile>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 09:21:43 UTC 2024
    - 13K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    	}
    	if !strings.Contains(err.Error(), "The provided continue parameter is too old ") {
    		t.Fatalf("unexpected error message %v", err)
    	}
    	status, ok := err.(apierrors.APIStatus)
    	if !ok {
    		t.Fatalf("expect error of implements the APIStatus interface, got %v", reflect.TypeOf(err))
    	}
    	inconsistentContinueFromSecondItem := status.Status().ListMeta.Continue
    	if len(inconsistentContinueFromSecondItem) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    				}
    			}
    		})
    	}
    }
    
    func isQualifiedResource(err error, kind, group string) bool {
    	if err.(errors.APIStatus).Status().Details.Kind != kind || err.(errors.APIStatus).Status().Details.Group != group {
    		return false
    	}
    	return true
    }
    
    func updateAndVerify(t *testing.T, ctx context.Context, registry *Store, pod *example.Pod) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_pods.go

    		if s.Phase != pod.Status.Phase {
    			klog.ErrorS(nil, "Pod attempted illegal phase transition", "pod", klog.KObj(pod), "originalStatusPhase", pod.Status.Phase, "apiStatusPhase", s.Phase, "apiStatus", s)
    			// Force back to phase from the API server
    			s.Phase = pod.Status.Phase
    		}
    	}
    
    	// ensure the probe managers have up to date status for containers
    	kl.probeManager.UpdatePodStatus(pod, s)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  7. cmd/metrics-v3-api.go

    	for name, value := range httpStats.CurrentS3Requests.APIStats {
    		m.Set(apiRequestsInFlightTotal, float64(value), "name", name, "type", "s3")
    	}
    	for name, value := range httpStats.TotalS3Requests.APIStats {
    		m.Set(apiRequestsTotal, float64(value), "name", name, "type", "s3")
    	}
    	for name, value := range httpStats.TotalS3Errors.APIStats {
    		m.Set(apiRequestsErrorsTotal, float64(value), "name", name, "type", "s3")
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 07:41:18 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. cmd/http-stats.go

    	if stats == nil {
    		return map[string]int{}
    	}
    
    	stats.RLock()
    	defer stats.RUnlock()
    
    	apiStats := make(map[string]int, len(stats.apiStats))
    	for k, v := range stats.apiStats {
    		if toLower {
    			k = strings.ToLower(k)
    		}
    		apiStats[k] = v
    	}
    	return apiStats
    }
    
    // HTTPStats holds statistics information about
    // HTTP requests made by all clients
    type HTTPStats struct {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 06:25:13 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. cmd/metrics.go

    		ch <- prometheus.MustNewConstMetric(
    			prometheus.NewDesc(
    				prometheus.BuildFQName(s3Namespace, "errors", "total"),
    				"Total number of s3 errors in current MinIO server instance",
    				[]string{"api"}, nil),
    			prometheus.CounterValue,
    			float64(value),
    			api,
    		)
    	}
    
    	for api, value := range httpStats.TotalS3Canceled.APIStats {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  10. cmd/metrics-v2.go

    			httpStats := globalHTTPStats.toServerHTTPStats(true)
    			metrics = make([]MetricV2, 0, 3+
    				len(httpStats.CurrentS3Requests.APIStats)+
    				len(httpStats.TotalS3Requests.APIStats)+
    				len(httpStats.TotalS3Errors.APIStats)+
    				len(httpStats.TotalS35xxErrors.APIStats)+
    				len(httpStats.TotalS34xxErrors.APIStats))
    			metrics = append(metrics, MetricV2{
    				Description: getS3RejectedAuthRequestsTotalMD(),
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:54 UTC 2024
    - 131.9K bytes
    - Viewed (0)
Back to top