Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 210 for resourcesList (0.27 sec)

  1. operator/cmd/mesh/uninstall.go

    func constructResourceListOutput(resourcesList []*unstructured.UnstructuredList, objectsList object.K8sObjects) (string, string) {
    	var items []unstructured.Unstructured
    	if objectsList != nil {
    		items = objectsList.UnstructuredItems()
    	}
    	for _, usList := range resourcesList {
    		items = append(items, usList.Items...)
    	}
    	kindNameMap := make(map[string][]string)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/ResourcesTest.java

    import java.util.ArrayList;
    import java.util.List;
    import junit.framework.TestSuite;
    
    /**
     * Unit test for {@link Resources}.
     *
     * @author Chris Nokleberg
     */
    
    public class ResourcesTest extends IoTestCase {
    
      @AndroidIncompatible // wouldn't run anyway, but strip the source entirely because of b/230620681
      public static TestSuite suite() {
        TestSuite suite = new TestSuite();
        suite.addTest(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/ResourcesTest.java

    import java.util.ArrayList;
    import java.util.List;
    import junit.framework.TestSuite;
    
    /**
     * Unit test for {@link Resources}.
     *
     * @author Chris Nokleberg
     */
    
    public class ResourcesTest extends IoTestCase {
    
      @AndroidIncompatible // wouldn't run anyway, but strip the source entirely because of b/230620681
      public static TestSuite suite() {
        TestSuite suite = new TestSuite();
        suite.addTest(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  4. pkg/quota/v1/evaluator/core/pods_test.go

    						Resources: api.ResourceRequirements{
    							Requests: api.ResourceList{api.ResourceCPU: resource.MustParse("1m")},
    							Limits:   api.ResourceList{api.ResourceCPU: resource.MustParse("2m")},
    						},
    					}, {
    						Name: "bar",
    						Resources: api.ResourceRequirements{
    							Requests: api.ResourceList{api.ResourceCPU: resource.MustParse("1m")},
    							Limits:   api.ResourceList{api.ResourceCPU: resource.MustParse("2m")},
    						},
    					}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  5. plugin/pkg/admission/limitranger/admission_test.go

    		},
    		{
    			pod:        validPod("ctr-1-min-local-ephemeral-storage-request-limit", 1, getResourceRequirements(getLocalStorageResourceList("60Mi"), getLocalStorageResourceList("100Mi"))),
    			limitRange: createLimitRange(api.LimitTypeContainer, getLocalStorageResourceList("50Mi"), api.ResourceList{}, api.ResourceList{}, api.ResourceList{}, api.ResourceList{}),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/quota/v1/resources_test.go

    		a        corev1.ResourceList
    		b        corev1.ResourceList
    		expected corev1.ResourceList
    	}{
    		"noKeys": {
    			a:        corev1.ResourceList{},
    			b:        corev1.ResourceList{},
    			expected: corev1.ResourceList{},
    		},
    		"toEmpty": {
    			a:        corev1.ResourceList{corev1.ResourceCPU: resource.MustParse("100m")},
    			b:        corev1.ResourceList{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 12 01:57:38 UTC 2021
    - 15.6K bytes
    - Viewed (0)
  7. pkg/api/v1/resource/helpers_test.go

    	}
    }
    
    func TestDefaultResourceHelpers(t *testing.T) {
    	resourceList := v1.ResourceList{}
    	if resourceList.Cpu().Format != resource.DecimalSI {
    		t.Errorf("expected %v, actual %v", resource.DecimalSI, resourceList.Cpu().Format)
    	}
    	if resourceList.Memory().Format != resource.BinarySI {
    		t.Errorf("expected %v, actual %v", resource.BinarySI, resourceList.Memory().Format)
    	}
    }
    
    func TestGetResourceRequest(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 07 22:26:13 UTC 2023
    - 38.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/quota/v1/resources.go

    			}
    		}
    	}
    	return result, resourceNames
    }
    
    // Max returns the result of Max(a, b) for each named resource
    func Max(a corev1.ResourceList, b corev1.ResourceList) corev1.ResourceList {
    	result := corev1.ResourceList{}
    	for key, value := range a {
    		if other, found := b[key]; found {
    			if value.Cmp(other) <= 0 {
    				result[key] = other.DeepCopy()
    				continue
    			}
    		}
    		result[key] = value.DeepCopy()
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 06 23:11:22 UTC 2021
    - 8.7K bytes
    - Viewed (0)
  9. pkg/scheduler/util/pod_resources_test.go

    func TestGetNonZeroRequest(t *testing.T) {
    	tests := []struct {
    		name           string
    		requests       v1.ResourceList
    		expectedCPU    int64
    		expectedMemory int64
    	}{
    		{
    			"cpu_and_memory_not_found",
    			v1.ResourceList{},
    			DefaultMilliCPURequest,
    			DefaultMemoryRequest,
    		},
    		{
    			"only_cpu_exist",
    			v1.ResourceList{
    				v1.ResourceCPU: resource.MustParse("200m"),
    			},
    			200,
    			DefaultMemoryRequest,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 09 23:15:53 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/kuberuntime_container_linux_test.go

    		scalingFg bool
    		limits    v1.ResourceList
    		requests  v1.ResourceList
    		cStatus   []v1.ContainerStatus
    		expected  *runtimeapi.LinuxContainerResources
    	}{
    		{
    			"requests & limits, cpu & memory, guaranteed qos - no container status",
    			true,
    			v1.ResourceList{v1.ResourceCPU: resource.MustParse("250m"), v1.ResourceMemory: resource.MustParse("500Mi")},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41K bytes
    - Viewed (0)
Back to top