Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for oldArgs (0.12 sec)

  1. src/flag/flag_test.go

    // This tests that one can reset the flags. This still works but not well, and is
    // superseded by FlagSet.
    func TestChangingArgs(t *testing.T) {
    	ResetForTesting(func() { t.Fatal("bad parse") })
    	oldArgs := os.Args
    	defer func() { os.Args = oldArgs }()
    	os.Args = []string{"cmd", "-before", "subcmd", "-after", "args"}
    	before := Bool("before", false, "")
    	if err := CommandLine.Parse(os.Args[1:]); err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 22K bytes
    - Viewed (0)
  2. pkg/kube/krt/collection.go

    				newRes, newExists := results[key]
    				// Find the old O object
    				oldRes, oldExists := h.collectionState.outputs[key]
    				e := Event[O]{}
    				if newExists && oldExists {
    					if equal(newRes, oldRes) {
    						// NOP change, skip
    						continue
    					}
    					e.Event = controllers.EventUpdate
    					e.New = &newRes
    					e.Old = &oldRes
    					h.collectionState.outputs[key] = newRes
    				} else if newExists {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  3. pkg/controller/replicaset/replica_set.go

    	oldRS := old.(*apps.ReplicaSet)
    	curRS := cur.(*apps.ReplicaSet)
    
    	// TODO: make a KEP and fix informers to always call the delete event handler on re-create
    	if curRS.UID != oldRS.UID {
    		key, err := controller.KeyFunc(oldRS)
    		if err != nil {
    			utilruntime.HandleError(fmt.Errorf("couldn't get key for object %#v: %v", oldRS, err))
    			return
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy.go

    	errs = append(errs, schemaobjectmeta.Validate(nil, uNew.Object, a.structuralSchema, false)...)
    
    	// ratcheting validation of x-kubernetes-list-type value map and set
    	if oldErrs := structurallisttype.ValidateListSetsAndMaps(nil, a.structuralSchema, uOld.Object); len(oldErrs) == 0 {
    		errs = append(errs, structurallisttype.ValidateListSetsAndMaps(nil, a.structuralSchema, uNew.Object)...)
    	}
    
    	// validate x-kubernetes-validations rules
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 21:22:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  5. pkg/controller/deployment/deployment_controller.go

    	curRS := cur.(*apps.ReplicaSet)
    	oldRS := old.(*apps.ReplicaSet)
    	if curRS.ResourceVersion == oldRS.ResourceVersion {
    		// Periodic resync will send update events for all known replica sets.
    		// Two different versions of the same replica set will always have different RVs.
    		return
    	}
    
    	curControllerRef := metav1.GetControllerOf(curRS)
    	oldControllerRef := metav1.GetControllerOf(oldRS)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  6. pkg/apis/apps/validation/validation.go

    func ValidateReplicaSetUpdate(rs, oldRs *apps.ReplicaSet, opts apivalidation.PodValidationOptions) field.ErrorList {
    	allErrs := field.ErrorList{}
    	allErrs = append(allErrs, apivalidation.ValidateObjectMetaUpdate(&rs.ObjectMeta, &oldRs.ObjectMeta, field.NewPath("metadata"))...)
    	allErrs = append(allErrs, ValidateReplicaSetSpec(&rs.Spec, &oldRs.Spec, field.NewPath("spec"), opts)...)
    	return allErrs
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 06 22:11:20 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  7. pilot/pkg/config/kube/crdclient/client.go

    		ResourceVersion: config.ResourceVersion,
    		OwnerReferences: config.OwnerReferences,
    		UID:             types.UID(config.UID),
    	}
    }
    
    func genPatchBytes(oldRes, modRes runtime.Object, patchType types.PatchType) ([]byte, error) {
    	oldJSON, err := json.Marshal(oldRes)
    	if err != nil {
    		return nil, fmt.Errorf("failed marhsalling original resource: %v", err)
    	}
    	newJSON, err := json.Marshal(modRes)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 00:12:28 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

      block.addArguments(
          types, SmallVector<Location>(types.size(), block.getParent()->getLoc()));
    
      ValueRange old_args = block.getArguments().take_front(old_args_size);
      ValueRange new_args = block.getArguments().drop_front(old_args_size);
      assert(!new_args.empty());
    
      ReplaceWithTupleResult(builder, old_args, new_args, /*flatten_tuple=*/true);
      auto new_arg = new_args[new_args.size() - 1];
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
Back to top