- Sort Score
- Result 10 results
- Languages All
Results 51 - 57 of 57 for mustParse (0.43 sec)
-
pkg/scheduler/eventhandlers_test.go
node: st.MakeNode().Name("fake-node").Label("foo", "bar").Capacity(cpu).Obj(), pod: st.MakePod().Name("pod2").Container("c").Overhead(v1.ResourceList{v1.ResourceCPU: resource.MustParse("1")}).Req(map[v1.ResourceName]string{v1.ResourceCPU: "1"}).NodeSelector(map[string]string{"foo": "bar1"}).Obj(), existingPods: []*v1.Pod{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 10 14:38:54 UTC 2024 - 21.5K bytes - Viewed (0) -
pkg/test/framework/components/echo/kube/deployment.go
func getTemplate(tmplFilePath string) *template.Template { yamlPath := path.Join(echoKubeTemplatesDir, tmplFilePath) if filepath.IsAbs(tmplFilePath) { yamlPath = tmplFilePath } return tmpl.MustParse(file.MustAsString(yamlPath)) } var _ workloadHandler = &deployment{} type deployment struct { ctx resource.Context cfg echo.Config shouldCreateWLE bool }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 09 12:26:52 UTC 2024 - 24.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/text/cases/map.go
const supported = "und af az el lt nl tr" func init() { tags := []language.Tag{} for _, s := range strings.Split(supported, " ") { tags = append(tags, language.MustParse(s)) } matcher = internal.NewInheritanceMatcher(tags) Supported = language.NewCoverage(tags) } var ( matcher *internal.InheritanceMatcher Supported language.Coverage
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 22.7K bytes - Viewed (0) -
pkg/kubelet/nodestatus/setters.go
// See if the test should be updated instead. node.Status.Capacity[v1.ResourceCPU] = *resource.NewMilliQuantity(0, resource.DecimalSI) node.Status.Capacity[v1.ResourceMemory] = resource.MustParse("0Gi") node.Status.Capacity[v1.ResourcePods] = *resource.NewQuantity(int64(maxPods), resource.DecimalSI) klog.ErrorS(err, "Error getting machine info") } else { node.Status.NodeInfo.MachineID = info.MachineID
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 12:12:04 UTC 2024 - 30.5K bytes - Viewed (0) -
pkg/volume/util/util.go
// minimumTimeout or the timeoutIncrement per Gi of storage size, whichever is // greater. func CalculateTimeoutForVolume(minimumTimeout, timeoutIncrement int, pv *v1.PersistentVolume) int64 { giQty := resource.MustParse("1Gi") pvQty := pv.Spec.Capacity[v1.ResourceStorage] giSize := giQty.Value() pvSize := pvQty.Value() timeout := (pvSize / giSize) * int64(timeoutIncrement) if timeout < int64(minimumTimeout) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 12:32:15 UTC 2024 - 28.8K bytes - Viewed (0) -
cmd/xl-storage-format-v2_test.go
failOnErr(i+1, xl.AddVersion(fi)) fi.ExpireRestored = tc.expireRestored fileInfos = append(fileInfos, fi) } for i, tc := range testCases { _, version, err := xl.findVersion(uuid.MustParse(tc.versionID)) failOnErr(i+1, err) if got := xl.SharedDataDirCount(version.getVersionID(), version.ObjectV2.DataDir); got != tc.shares {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Mar 08 17:50:48 UTC 2024 - 36.4K bytes - Viewed (0) -
cmd/erasure-sets.go
defaultParityCount: defaultParityCount, format: format, setReconnectEvent: make(chan int), distributionAlgo: format.Erasure.DistributionAlgo, deploymentID: uuid.MustParse(format.ID), poolIndex: poolIdx, } mutex := newNSLock(globalIsDistErasure) for i := 0; i < setCount; i++ { s.erasureDisks[i] = make([]StorageAPI, setDriveCount) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 37.7K bytes - Viewed (0)