- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for apiStatus (0.19 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/skipnonapplied_test.go
} err := f.Apply(appliedObj, "fieldmanager_test_apply", false) apiStatus, _ := err.(apierrors.APIStatus) if err == nil || !apierrors.IsConflict(err) || len(apiStatus.Status().Details.Causes) != 1 { t.Fatalf("Expecting to get one conflict but got %v", err) } if e, a := ".metadata.labels.app", apiStatus.Status().Details.Causes[0].Field; e != a {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 16 20:03:48 UTC 2023 - 4.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go
// reconstructed by clients from a REST response. Public to allow easy type switches. type StatusError struct { ErrStatus metav1.Status } // APIStatus is exposed by errors that can be converted to an api.Status object // for finer grained details. type APIStatus interface { Status() metav1.Status } var _ error = &StatusError{} var knownReasons = map[metav1.StatusReason]struct{}{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 21 03:41:32 UTC 2022 - 30.5K bytes - Viewed (0) -
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) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/namespace/matcher.go
} namespaceLabels, err := m.GetNamespaceLabels(attr) // this means the namespace is not found, for backwards compatibility, // return a 404 if apierrors.IsNotFound(err) { status, ok := err.(apierrors.APIStatus) if !ok { return false, apierrors.NewInternalError(err) } return false, &apierrors.StatusError{ErrStatus: status.Status()} } if err != nil { return false, apierrors.NewInternalError(err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 15 00:53:08 UTC 2023 - 4.4K bytes - Viewed (0) -
.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) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/objectmeta_test.go
if err == nil { t.Fatalf("unexpected non-error, expected invalid labels to be rejected: %v", err) } if status, ok := err.(errors.APIStatus); !ok { t.Fatalf("expected APIStatus error, but got: %#v", err) } else if !errors.IsBadRequest(err) { t.Fatalf("expected BadRequst error, but got: %v", errors.ReasonForError(err))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 06 05:32:34 UTC 2023 - 19K bytes - Viewed (0) -
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) -
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) -
.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) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/fieldmanager_test.go
} switch typ := err.(type) { default: t.Fatalf("expected error to be of type %T was %T (%v)", apierrors.StatusError{}, typ, err) case apierrors.APIStatus: if typ.Status().Code != http.StatusBadRequest { t.Fatalf("expected status code to be %d but was %d", http.StatusBadRequest, typ.Status().Code) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 16 20:03:48 UTC 2023 - 32.5K bytes - Viewed (0)