Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 50 for newSpec (1.83 sec)

  1. src/time/time_test.go

    	for i := int64(0); i < 100; i++ {
    		sec := notMonoTime.Unix()
    		notMonoTime = notMonoTime.Add(Duration(i * 1e9))
    		if newSec := notMonoTime.Unix(); newSec != sec+i && newSec+UnixToInternal != maxInt64 {
    			t.Fatalf("time ext: %d overflows with positive delta, overflow threshold: %d", newSec, maxInt64)
    		}
    	}
    
    	// Test it with negative delta.
    	maxInt64 = -maxInt64
    	notMonoTime = NotMonoNegativeTime
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  2. pkg/registry/core/persistentvolumeclaim/strategy.go

    	newPvc := obj.(*api.PersistentVolumeClaim)
    	oldPvc := old.(*api.PersistentVolumeClaim)
    	opts := validation.ValidationOptionsForPersistentVolumeClaim(newPvc, oldPvc)
    	errorList := validation.ValidatePersistentVolumeClaim(newPvc, opts)
    	return append(errorList, validation.ValidatePersistentVolumeClaimUpdate(newPvc, oldPvc, opts)...)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 09 20:58:25 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/volumebinding/assume_cache_test.go

    		t.Fatalf("failed to get PVC: %v", err)
    	}
    
    	// Assume PVC
    	newPVC := pvc.DeepCopy()
    	newPVC.Annotations[volume.AnnSelectedNode] = "test-node"
    	if err := cache.Assume(newPVC); err != nil {
    		t.Fatalf("failed to assume PVC: %v", err)
    	}
    	if err := verifyPVC(cache, getPVCName(pvc), newPVC); err != nil {
    		t.Fatalf("failed to get PVC after assume: %v", err)
    	}
    
    	// Add old PVC
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/macho_combine_dwarf.go

    		if err != nil {
    			return nil, nil, err
    		}
    
    		newSec := *sect
    		newSec.Offset = uint32(dwarfseg.Offset) + uint32(buf.Len())
    		newSec.Addr = dwarfseg.Addr + uint64(buf.Len())
    		if compressed {
    			newSec.Name = "__z" + sect.Name[2:]
    			newSec.Size = uint64(len(contents))
    		}
    		sects = append(sects, &newSec)
    		buf.Write(contents)
    	}
    	return sects, buf.Bytes(), nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. pkg/registry/core/persistentvolumeclaim/strategy_test.go

    					if !reflect.DeepEqual(newPvc, newPvcInfo.pvc()) {
    						t.Errorf("new pvc changed: %v", cmp.Diff(newPvc, newPvcInfo.pvc()))
    					}
    				default:
    					// new pvc should not need to be changed
    					if !reflect.DeepEqual(newPvc, newPvcInfo.pvc()) {
    						t.Errorf("new pvc changed: %v", cmp.Diff(newPvc, newPvcInfo.pvc()))
    					}
    				}
    			})
    		}
    	}
    
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions.cc

                     QuantizationComponentSpec::TensorType type) {
                QuantizationComponentSpec* new_spec =
                    quant_options_.mutable_quantization_method()
                        ->add_quantization_component_specs();
                new_spec->set_quantization_component(component);
                new_spec->set_tensor_type(type);
              };
    
          add_new_spec(QuantizationComponentSpec::COMPONENT_ACTIVATION,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  7. pkg/quota/v1/install/update_filter.go

    		case schema.GroupResource{Resource: "persistentvolumeclaims"}:
    			oldPVC := oldObj.(*v1.PersistentVolumeClaim)
    			newPVC := newObj.(*v1.PersistentVolumeClaim)
    			return core.RequiresQuotaReplenish(newPVC, oldPVC)
    		}
    
    		return false
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 08 22:39:55 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/volumebinding/binder_test.go

    	newPVC := pvc.DeepCopy()
    	metav1.SetMetaDataAnnotation(&newPVC.ObjectMeta, volume.AnnSelectedNode, node)
    	return newPVC
    }
    
    func pvcSetEmptyAnnotations(pvc *v1.PersistentVolumeClaim) *v1.PersistentVolumeClaim {
    	newPVC := pvc.DeepCopy()
    	newPVC.Annotations = map[string]string{}
    	return newPVC
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  9. platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/ExecHandleFactory.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.process.internal;
    
    public interface ExecHandleFactory {
        ExecHandleBuilder newExec();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 727 bytes
    - Viewed (0)
  10. plugin/pkg/admission/noderestriction/admission.go

    		oldPVC.ObjectMeta.ResourceVersion = ""
    		newPVC.ObjectMeta.ResourceVersion = ""
    
    		oldPVC.Status.Capacity = nil
    		newPVC.Status.Capacity = nil
    
    		oldPVC.Status.Conditions = nil
    		newPVC.Status.Conditions = nil
    
    		if p.expansionRecoveryEnabled {
    			oldPVC.Status.AllocatedResourceStatuses = nil
    			newPVC.Status.AllocatedResourceStatuses = nil
    
    			oldPVC.Status.AllocatedResources = nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 23.6K bytes
    - Viewed (0)
Back to top