Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 558 for Sort (0.04 sec)

  1. pkg/proxy/config/config_test.go

    func (h *ServiceHandlerMock) sendServices() {
    	if !h.synced {
    		return
    	}
    	services := make([]*v1.Service, 0, len(h.state))
    	for _, svc := range h.state {
    		services = append(services, svc)
    	}
    	sort.Sort(sortedServices(services))
    	h.process(services)
    }
    
    func (h *ServiceHandlerMock) ValidateServices(t *testing.T, expectedServices []*v1.Service) {
    	// We might get 1 or more updates for N service updates, because we
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/cpumanager/topology_hints_test.go

    		}
    
    		if m.pendingAdmissionPod == nil {
    			t.Errorf("The pendingAdmissionPod should point to the current pod after the call to GetTopologyHints()")
    		}
    
    		sort.SliceStable(hints, func(i, j int) bool {
    			return hints[i].LessThan(hints[j])
    		})
    		sort.SliceStable(tc.expectedHints, func(i, j int) bool {
    			return tc.expectedHints[i].LessThan(tc.expectedHints[j])
    		})
    		if !reflect.DeepEqual(tc.expectedHints, hints) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. pkg/proxy/endpointslicecache.go

    				continue
    			}
    			// TODO: handle nil ports to mean "all"
    			if port.Port == nil || *port.Port == int32(0) {
    				klog.ErrorS(nil, "Ignoring invalid endpoint port", "portName", *port.Name)
    				continue
    			}
    
    			svcPortName := ServicePortName{
    				NamespacedName: serviceNN,
    				Port:           *port.Name,
    				Protocol:       *port.Protocol,
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:07:21 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  4. internal/logger/logger.go

    // unique set. data is expected to be pre-sorted, and the resulting set in
    // the range [0:size] will remain in sorted order. Uniq, following a
    // sort.Sort call, can be used to prepare arbitrary inputs for use as sets.
    func uniq(data sort.Interface) (size int) {
    	p, l := 0, data.Len()
    	if l <= 1 {
    		return l
    	}
    	for i := 1; i < l; i++ {
    		if !data.Less(p, i) {
    			continue
    		}
    		p++
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/typechecking.go

    		if len(versions) == 0 {
    			continue
    		}
    		resources := extractResources(&rule.Rule)
    		if len(resources) == 0 {
    			continue
    		}
    		// sort GVRs so that the loop below provides
    		// consistent results.
    		sort.Strings(groups)
    		sort.Strings(versions)
    		sort.Strings(resources)
    		count := 0
    		for _, group := range groups {
    			for _, version := range versions {
    				for _, resource := range resources {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  6. cmd/metacache-walk.go

    				meta.name = strings.TrimSuffix(meta.name, SlashSeparator)
    				meta.name = pathJoinBuf(sb, current, meta.name)
    
    				return send(meta)
    			}
    			// Skip all other files.
    		}
    
    		// Process in sort order.
    		sort.Strings(entries)
    		dirStack := make([]string, 0, 5)
    		prefix = "" // Remove prefix after first level as we have already filtered the list.
    		if len(forward) > 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jun 01 05:17:37 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  7. pilot/pkg/model/telemetry.go

    		return false
    	}
    	// Sort each slice so that we can compare them in order. Comparison is on the fields that are used in the test cases.
    	sort.SliceStable(ct.Metrics, func(i, j int) bool {
    		return ct.Metrics[i].Providers[0].Name < ct.Metrics[j].Providers[0].Name
    	})
    	sort.SliceStable(other.Metrics, func(i, j int) bool {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 18:14:09 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  8. tests/joins_test.go

    	} else if len(users2) != len(users) {
    		t.Fatalf("Failed to load join users, got: %v, expect: %v", len(users2), len(users))
    	}
    
    	sort.Slice(users2, func(i, j int) bool {
    		return users2[i].ID > users2[j].ID
    	})
    
    	sort.Slice(users, func(i, j int) bool {
    		return users[i].ID > users[j].ID
    	})
    
    	for idx, user := range users {
    		CheckUser(t, user, users2[idx])
    	}
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 15K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/file/FileCollectionSymlinkIntegrationTest.groovy

            """
    
            when:
            run 'copy'
            then:
            outputDirectory.list().sort() == [input.name, brokenLink.name].sort()
            executedAndNotSkipped ':copy'
    
            when:
            run 'copy'
            then:
            outputDirectory.list().sort() == [input.name, brokenLink.name].sort()
            skipped ':copy'
    
            when:
            brokenLink.delete()
            run 'copy'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/kuberuntime_sandbox.go

    		for idx := range containerPortMappings {
    			port := containerPortMappings[idx]
    			hostPort := int32(port.HostPort)
    			containerPort := int32(port.ContainerPort)
    			protocol := toRuntimeProtocol(port.Protocol)
    			portMappings = append(portMappings, &runtimeapi.PortMapping{
    				HostIp:        port.HostIP,
    				HostPort:      hostPort,
    				ContainerPort: containerPort,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top