Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for IsInvalid (0.77 sec)

  1. pkg/registry/core/pod/rest/log_test.go

    		{SinceSeconds: &negativeOne},
    		{TailLines: &negativeOne},
    	}
    
    	for _, tc := range testCases {
    		_, err := logRest.Get(genericapirequest.NewDefaultContext(), "test", tc)
    		if !errors.IsInvalid(err) {
    			t.Fatalf("Unexpected error: %v", err)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/fingerprint/ConfigurationCacheFingerprintChecker.kt

                        // Don't check a value for a project that is already out-of-date
                        val state = projects.entryFor(input.projectPath)
                        if (!state.isInvalid) {
                            val reason = check(input.value)
                            if (reason != null) {
                                if (firstReason == null) {
                                    firstReason = reason
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Interceptor.kt

     *
     * A good way to signal a failure is with a synthetic HTTP response:
     *
     * ```kotlin
     *   @Throws(IOException::class)
     *   override fun intercept(chain: Interceptor.Chain): Response {
     *     if (myConfig.isInvalid()) {
     *       return Response.Builder()
     *           .request(chain.request())
     *           .protocol(Protocol.HTTP_1_1)
     *           .code(400)
     *           .message("client config invalid")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. pkg/controller/controller_ref_manager.go

    	}
    	err = m.podControl.PatchPod(ctx, pod.Namespace, pod.Name, patchBytes)
    	if err != nil {
    		if errors.IsNotFound(err) {
    			// If the pod no longer exists, ignore it.
    			return nil
    		}
    		if errors.IsInvalid(err) {
    			// Invalid error will be returned in two cases: 1. the pod
    			// has no owner reference, 2. the uid of the pod doesn't
    			// match, which means the pod is deleted and then recreated.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 12:57:29 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/api/errors/errors_test.go

    	}
    	if IsConflict(err) {
    		t.Errorf("expected to not be %s", metav1.StatusReasonConflict)
    	}
    	if IsNotFound(err) {
    		t.Errorf("expected to not be %s", metav1.StatusReasonNotFound)
    	}
    	if IsInvalid(err) {
    		t.Errorf("expected to not be %s", metav1.StatusReasonInvalid)
    	}
    	if IsBadRequest(err) {
    		t.Errorf("expected to not be %s", metav1.StatusReasonBadRequest)
    	}
    	if IsForbidden(err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_dispatcher.go

    			// Param not yet available. User may need to wait a bit
    			// before being able to use it for validation.
    			//
    			// Set params to nil to prepare for not found action
    			params = nil
    		case apierrors.IsInvalid(err):
    			// Param mis-configured
    			// require to set namespace for namespaced resource
    			// and unset namespace for cluster scoped resource
    			return nil, err
    		default:
    			// Internal error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/phases/addons/dns/dns.go

    		// Ignore if the Service is invalid with this error message:
    		// 	Service "kube-dns" is invalid: spec.clusterIP: Invalid value: "10.96.0.10": provided IP is already allocated
    
    		if !apierrors.IsAlreadyExists(err) && !apierrors.IsInvalid(err) {
    			return errors.Wrap(err, "unable to create a new DNS service")
    		}
    
    		if _, err := client.CoreV1().Services(metav1.NamespaceSystem).Update(context.TODO(), dnsService, metav1.UpdateOptions{}); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  8. pkg/controlplane/controller/clusterauthenticationtrust/cluster_authentication_trust_controller.go

    	//   2. the content is so large that that the server sends a validation error "Too long: must have at most 1048576 characters"
    	if apierrors.IsRequestEntityTooLargeError(err) || (apierrors.IsInvalid(err) && strings.Contains(err.Error(), "Too long")) {
    		if deleteErr := configMapClient.ConfigMaps(required.Namespace).Delete(context.TODO(), required.Name, metav1.DeleteOptions{}); deleteErr != nil {
    			return deleteErr
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/test/integration/basic_test.go

    				"apiVersion": "mygroup.example.com/" + version,
    				"kind":       "WishIHadChosenNoxu",
    			},
    		}
    		if _, err := noxuResourceClient.Create(context.TODO(), typedNoBodyInstance, metav1.CreateOptions{}); !errors.IsInvalid(err) {
    			t.Errorf("expected invalid request for submitting malformed object, got %#v", err)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 11:35:33 UTC 2024
    - 33.4K bytes
    - Viewed (0)
Back to top