Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for apiStatus (0.14 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. .idea/inspectionProfiles/idea_default.xml

              <option value="org.apache.http.annotation.Beta" />
              <option value="org.jetbrains.annotations.ApiStatus.Experimental" />
              <option value="org.jetbrains.annotations.ApiStatus.Internal" />
              <option value="org.jetbrains.annotations.ApiStatus.ScheduledForRemoval" />
              <option value="rx.annotations.Beta" />
              <option value="rx.annotations.Experimental" />
            </set>
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Nov 09 20:59:03 UTC 2023
    - 32.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher.go

    			}
    		}
    	}
    	return res
    }
    
    func transformErrorToEvent(err error) *watch.Event {
    	err = interpretWatchError(err)
    	if _, ok := err.(apierrors.APIStatus); !ok {
    		err = apierrors.NewInternalError(err)
    	}
    	status := err.(apierrors.APIStatus).Status()
    	return &watch.Event{
    		Type:   watch.Error,
    		Object: &status,
    	}
    }
    
    func (wc *watchChan) sendError(err error) {
    	select {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 10:26:38 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  4. 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)
  5. .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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top