Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Primaries (0.21 sec)

  1. src/net/ipsock_test.go

    			t.Errorf("#%v: got %v; want %v", i, first, tt.first)
    		}
    		primaries, fallbacks := addrs.partition(isIPv4)
    		if !reflect.DeepEqual(primaries, tt.primaries) {
    			t.Errorf("#%v: got %v; want %v", i, primaries, tt.primaries)
    		}
    		if !reflect.DeepEqual(fallbacks, tt.fallbacks) {
    			t.Errorf("#%v: got %v; want %v", i, fallbacks, tt.fallbacks)
    		}
    		expectedLen := len(primaries) + len(fallbacks)
    		if len(addrs) != expectedLen {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 15 22:22:09 UTC 2017
    - 6.8K bytes
    - Viewed (0)
  2. src/net/ipsock.go

    // The first address, and any with a matching label, are returned as
    // primaries, while addresses with the opposite label are returned
    // as fallbacks. For non-empty inputs, primaries is guaranteed to be
    // non-empty.
    func (addrs addrList) partition(strategy func(Addr) bool) (primaries, fallbacks addrList) {
    	var primaryLabel bool
    	for i, addr := range addrs {
    		label := strategy(addr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. pkg/test/framework/components/cluster/clusters.go

    		for _, network := range networks {
    			if cc.NetworkName() == network {
    				out = append(out, cc)
    				break
    			}
    		}
    	}
    	return out
    }
    
    // Primaries returns the subset that are primary clusters.
    func (c Clusters) Primaries(excluded ...Cluster) Clusters {
    	return c.filterClusters(func(cc Cluster) bool {
    		return cc.IsPrimary()
    	}, exclude(excluded...))
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. pkg/test/framework/components/istio/cleanup.go

    		errG := multierror.Group{}
    		// Make sure to clean up primary clusters before remotes, or istiod will recreate some of the CMs that we delete
    		// in the remote clusters before it's deleted.
    		for _, c := range i.ctx.AllClusters().Primaries() {
    			i.cleanupCluster(c, &errG)
    		}
    		for _, c := range i.ctx.Clusters().Remotes() {
    			i.cleanupCluster(c, &errG)
    		}
    		return errG.Wait().ErrorOrNil()
    	}
    	for _, f := range i.istiod {
    		f.Close()
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. src/net/dial.go

    	}
    
    	sd := &sysDialer{
    		Dialer:  *d,
    		network: network,
    		address: address,
    	}
    
    	var primaries, fallbacks addrList
    	if d.dualStack() && network == "tcp" {
    		primaries, fallbacks = addrs.partition(isIPv4)
    	} else {
    		primaries = addrs
    	}
    
    	return sd.dialParallel(ctx, primaries, fallbacks)
    }
    
    // dialParallel races two copies of dialSerial, giving the first a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  6. tests/integration/pilot/multicluster_test.go

    	framework.NewTest(t).
    		RequiresMinClusters(2).
    		Run(func(t framework.TestContext) {
    			if len(t.Clusters().Primaries()) == 0 {
    				t.Skip("no primary cluster in framework (most likely only remote-config)")
    			}
    
    			// we don't need to test this per-cluster
    			primary := t.Clusters().Primaries()[0]
    			// it doesn't matter if the other cluster is a primary/remote/etc.
    			remote := t.Clusters().Exclude(primary)[0]
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. src/net/dial_test.go

    				}
    				if r := raddr.IP.String(); r == slowDst4 || r == slowDst6 {
    					<-ctx.Done()
    					return nil, ctx.Err()
    				}
    				return &TCPConn{}, nil
    			}
    
    			primaries := makeAddrs(tt.primaries, "80")
    			fallbacks := makeAddrs(tt.fallbacks, "80")
    			d := Dialer{
    				FallbackDelay: fallbackDelay,
    			}
    			const forever = 60 * time.Minute
    			if tt.expectElapsed == instant {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  8. tests/integration/pilot/vm_test.go

    	framework.
    		NewTest(t).
    		Label(label.Postsubmit).
    		Run(func(t framework.TestContext) {
    			if t.Settings().Skip(echo.VM) {
    				t.Skip("VM tests are disabled")
    			}
    			b := deployment.New(t, t.Clusters().Primaries().Default())
    			images := GetAdditionVMImages(t)
    			for _, image := range images {
    				b = b.WithConfig(echo.Config{
    					Service:    "vm-" + strings.ReplaceAll(image, "_", "-"),
    					Namespace:  apps.Namespace,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. pkg/test/framework/components/istio/kube.go

    		if err = i.installConfigCluster(c); err != nil {
    			return i, err
    		}
    	}
    
    	// Install control plane clusters (can be external or primary).
    	errG := multierror.Group{}
    	for _, c := range ctx.AllClusters().Primaries() {
    		c := c
    		errG.Go(func() error {
    			return i.installControlPlaneCluster(c)
    		})
    	}
    	if err := errG.Wait().ErrorOrNil(); err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  10. tests/integration/pilot/istioctl_test.go

    			}
    		})
    }
    
    func TestRemoteClusters(t *testing.T) {
    	// nolint: staticcheck
    	framework.NewTest(t).RequiresMinClusters(2).
    		Run(func(t framework.TestContext) {
    			for _, cluster := range t.Clusters().Primaries() {
    				cluster := cluster
    				t.NewSubTest(cluster.StableName()).Run(func(t framework.TestContext) {
    					istioCtl := istioctl.NewOrFail(t, t, istioctl.Config{Cluster: cluster})
    					var output string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top