Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 939 for oldR (3.87 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/validator.go

    	if errs := a.ValidateTypeMeta(ctx, obj); len(errs) > 0 {
    		return errs
    	}
    
    	var allErrs field.ErrorList
    
    	allErrs = append(allErrs, validation.ValidateObjectMetaAccessorUpdate(obj, old, field.NewPath("metadata"))...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 14:00:05 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. pkg/registry/core/service/strategy.go

    	allErrs := validation.ValidateServiceUpdate(obj.(*api.Service), old.(*api.Service))
    	return allErrs
    }
    
    // WarningsOnUpdate returns warnings for the given update.
    func (svcStrategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string {
    	return serviceapi.GetWarningsForService(obj.(*api.Service), old.(*api.Service))
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 13:09:36 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. pkg/kube/controllers/common.go

    	case EventUpdate:
    		out = "update"
    	case EventDelete:
    		out = "delete"
    	}
    	return out
    }
    
    type Event struct {
    	Old   Object
    	New   Object
    	Event EventType
    }
    
    func (e Event) Latest() Object {
    	if e.New != nil {
    		return e.New
    	}
    	return e.Old
    }
    
    func FromEventHandler(handler func(o Event)) cache.ResourceEventHandler {
    	return cache.ResourceEventHandlerFuncs{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 08:27:29 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. pkg/kube/krt/core.go

    type Event[T any] struct {
    	// Old object, set on Update or Delete.
    	Old *T
    	// New object, set on Add or Update
    	New *T
    	// Event is the change type
    	Event controllers.EventType
    }
    
    // Items returns both the Old and New object, if present.
    func (e Event[T]) Items() []T {
    	res := make([]T, 0, 2)
    	if e.Old != nil {
    		res = append(res, *e.Old)
    	}
    	if e.New != nil {
    		res = append(res, *e.New)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

        int originalCount = getMultiset().count(e0());
        assertEquals("old count", originalCount, getMultiset().remove(e0(), 0));
        expectUnchanged();
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRemove_occurrences_present() {
        assertEquals(
            "multiset.remove(present, 2) didn't return the old count",
            1,
            getMultiset().remove(e0(), 2));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 7K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

        int originalCount = getMultiset().count(e0());
        assertEquals("old count", originalCount, getMultiset().remove(e0(), 0));
        expectUnchanged();
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRemove_occurrences_present() {
        assertEquals(
            "multiset.remove(present, 2) didn't return the old count",
            1,
            getMultiset().remove(e0(), 2));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/apiapproval/apiapproval_controller.go

    	if old != nil && old.Status == cond.Status && old.Reason == cond.Reason && old.Message == cond.Message {
    		// no need to update annotation because we took no action.
    		return nil
    	}
    
    	// update condition
    	crd := inCustomResourceDefinition.DeepCopy()
    	apihelpers.SetCRDCondition(crd, *cond)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. pkg/registry/admissionregistration/validatingadmissionpolicybinding/authz.go

    }
    
    func (v *validatingAdmissionPolicyBindingStrategy) authorizeUpdate(ctx context.Context, obj, old runtime.Object) error {
    	binding := obj.(*admissionregistration.ValidatingAdmissionPolicyBinding)
    	if binding.Spec.ParamRef == nil {
    		// no paramRef in new object
    		return nil
    	}
    
    	oldBinding := old.(*admissionregistration.ValidatingAdmissionPolicyBinding)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 12:19:03 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modcmd/edit.go

    	if !found {
    		base.Fatalf("go: -replace=%s: need old[@v]=new[@w] (missing =)", arg)
    	}
    	old, new := strings.TrimSpace(before), strings.TrimSpace(after)
    	if strings.HasPrefix(new, ">") {
    		base.Fatalf("go: -replace=%s: separator between old and new is =, not =>", arg)
    	}
    	oldPath, oldVersion, err := parsePathVersionOptional("old", old, false)
    	if err != nil {
    		base.Fatalf("go: -replace=%s: %v", arg, err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/labels.go

    	if value, found := labels[label]; found {
    		return value
    	}
    	// Do not report error, because there should be many old containers without label now.
    	klog.V(3).InfoS("Container doesn't have requested label, it may be an old or invalid container", "label", label)
    	// Return empty string "" for these containers, the caller will get value by other ways.
    	return ""
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top