Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 50 for makeOld (0.21 sec)

  1. pkg/controller/nodelifecycle/node_lifecycle_controller_test.go

    				ObjectMeta: metav1.ObjectMeta{
    					Name:              "node0",
    					CreationTimestamp: fakeOld,
    				},
    				Status: v1.NodeStatus{
    					Conditions: []v1.NodeCondition{
    						{
    							Type:               v1.NodeReady,
    							Status:             v1.ConditionTrue,
    							LastHeartbeatTime:  fakeOld,
    							LastTransitionTime: fakeOld,
    						},
    					},
    				},
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 03:26:45 UTC 2024
    - 119K bytes
    - Viewed (0)
  2. pkg/controller/garbagecollector/garbagecollector_test.go

    func TestConflictingData(t *testing.T) {
    	pod1ns1 := makeID("v1", "Pod", "ns1", "podname1", "poduid1")
    	pod2ns1 := makeID("v1", "Pod", "ns1", "podname2", "poduid2")
    	pod2ns2 := makeID("v1", "Pod", "ns2", "podname2", "poduid2")
    	node1 := makeID("v1", "Node", "", "nodename", "nodeuid1")
    
    	role1v1beta1 := makeID("rbac.authorization.k8s.io/v1beta1", "Role", "ns1", "role1", "roleuid1")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/text/cases/cases.go

    // sound comparisons. Use golang.org/x/text/secure/precis for string comparisons
    // where security aspects are a concern.
    func Fold(opts ...Option) Caser {
    	return Caser{makeFold(getOpts(opts...))}
    }
    
    // An Option is used to modify the behavior of a Caser.
    type Option func(o options) options
    
    // TODO: consider these options to take a boolean as well, like FinalSigma.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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