Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for _isInvalid (1.28 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go

    	}
    	if _, ok := knownReasons[reason]; !ok && code == http.StatusConflict {
    		return true
    	}
    	return false
    }
    
    // IsInvalid determines if the err is an error which indicates the provided resource is not valid.
    // It supports wrapped errors and returns false when the error is nil.
    func IsInvalid(err error) bool {
    	reason, code := reasonAndCodeForError(err)
    	if reason == metav1.StatusReasonInvalid {
    		return true
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 21 03:41:32 UTC 2022
    - 30.5K bytes
    - Viewed (0)
  7. pkg/controller/history/controller_history.go

    		types.StrategicMergePatchType, dataBytes, metav1.PatchOptions{})
    
    	if err != nil {
    		if errors.IsNotFound(err) {
    			// We ignore deleted revisions
    			return nil, nil
    		}
    		if errors.IsInvalid(err) {
    			// We ignore cases where the parent no longer owns the revision or where the revision has no
    			// owner.
    			return nil, nil
    		}
    	}
    	return released, err
    }
    
    type fakeHistory struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 05 13:33:52 UTC 2021
    - 18.2K 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