Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 79 of 79 for makeOld (0.16 sec)

  1. pkg/scheduler/framework/plugins/volumezone/volume_zone_test.go

    	"k8s.io/kubernetes/pkg/scheduler/internal/cache"
    	st "k8s.io/kubernetes/pkg/scheduler/testing"
    	tf "k8s.io/kubernetes/pkg/scheduler/testing/framework"
    )
    
    func createPodWithVolume(pod, pvc string) *v1.Pod {
    	return st.MakePod().Name(pod).Namespace(metav1.NamespaceDefault).PVC(pvc).Obj()
    }
    
    func TestSingleZone(t *testing.T) {
    	pvLister := tf.PersistentVolumeLister{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 14 05:17:04 UTC 2023
    - 20K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go

    			Kind:      "ResourceClassParameters",
    			APIGroup:  "example.com",
    		},
    	}
    
    	podWithClaimName = st.MakePod().Name(podName).Namespace(namespace).
    				UID(podUID).
    				PodResourceClaims(v1.PodResourceClaim{Name: resourceName, Source: v1.ClaimSource{ResourceClaimName: &claimName}}).
    				Obj()
    	otherPodWithClaimName = st.MakePod().Name(podName).Namespace(namespace).
    				UID(podUID + "-II").
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 61.9K bytes
    - Viewed (0)
  3. pkg/scheduler/internal/cache/cache_test.go

    			t.Errorf("update %d: %v", j, err)
    		}
    	}
    }
    
    func makePodWithEphemeralStorage(nodeName, ephemeralStorage string) *v1.Pod {
    	return st.MakePod().Name("pod-with-ephemeral-storage").Namespace("default-namespace").UID("pod-with-ephemeral-storage").Req(
    		map[v1.ResourceName]string{
    			v1.ResourceEphemeralStorage: ephemeralStorage,
    		},
    	).Node(nodeName).Obj()
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 01:38:03 UTC 2023
    - 63.8K bytes
    - Viewed (0)
  4. pkg/apis/core/validation/validation_test.go

    	}{{
    		expectError: false,
    		pod:         makePod("nil-ips", "ns", nil),
    	}, {
    		expectError: false,
    		pod:         makePod("empty-podips-list", "ns", []core.PodIP{}),
    	}, {
    		expectError: false,
    		pod:         makePod("single-ip-family-6", "ns", []core.PodIP{{IP: "::1"}}),
    	}, {
    		expectError: false,
    		pod:         makePod("single-ip-family-4", "ns", []core.PodIP{{IP: "1.1.1.1"}}),
    	}, {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheDependencyResolutionIntegrationTest.groovy

            setupBuildWithArtifactTransformOfProjectDependencies()
            buildFile << """
                abstract class MakeRed implements TransformAction<TransformParameters.None> {
                    @InputArtifact
                    abstract Provider<FileSystemLocation> getInputArtifact()
    
                    void transform(TransformOutputs outputs) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/kuberuntime_container.go

    	if err != nil {
    		klog.ErrorS(err, "ListContainers failed")
    		return nil, err
    	}
    
    	return containers, nil
    }
    
    // makeUID returns a randomly generated string.
    func makeUID() string {
    	return fmt.Sprintf("%08x", rand.Uint32())
    }
    
    // getTerminationMessage looks on the filesystem for the provided termination message path, returning a limited
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 54.7K bytes
    - Viewed (0)
  7. pkg/scheduler/testing/wrappers.go

    	}
    	c.Container.Resources = v1.ResourceRequirements{
    		Limits: res,
    	}
    	return c
    }
    
    // PodWrapper wraps a Pod inside.
    type PodWrapper struct{ v1.Pod }
    
    // MakePod creates a Pod wrapper.
    func MakePod() *PodWrapper {
    	return &PodWrapper{v1.Pod{}}
    }
    
    // Obj returns the inner Pod.
    func (p *PodWrapper) Obj() *v1.Pod {
    	return &p.Pod
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  8. pkg/registry/core/service/storage/storage_test.go

    	}
    
    	return p
    }
    
    func TestServiceRegistryResourceLocation(t *testing.T) {
    	pods := []api.Pod{
    		makePod("unnamed", "1.2.3.4", "1.2.3.5"),
    		makePod("named", "1.2.3.6", "1.2.3.7"),
    		makePod("no-endpoints", "9.9.9.9"), // to prove this does not get chosen
    	}
    
    	endpoints := []*api.Endpoints{
    		epstest.MakeEndpoints("unnamed",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 440.2K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_test.go

    		gvr.AuthorizationPolicy,
    		gvr.PeerAuthentication,
    		gvr.KubernetesGateway,
    		gvr.GatewayClass,
    		gvr.WorkloadEntry,
    		gvr.ServiceEntry,
    	} {
    		clienttest.MakeCRD(t, cl, crd)
    	}
    	idx := New(Options{
    		Client:          cl,
    		SystemNamespace: systemNS,
    		DomainSuffix:    "company.com",
    		ClusterID:       clusterID,
    		XDSUpdater:      up,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 01:04:50 UTC 2024
    - 70.2K bytes
    - Viewed (0)
Back to top