Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for true (0.33 sec)

  1. cni/pkg/nodeagent/net_test.go

    	ipProto := uint8(unix.IPPROTO_TCP)
    
    	fakeIPSetDeps.On("addIP",
    		"foo-v4",
    		netip.MustParseAddr("99.9.9.9"),
    		ipProto,
    		podUID,
    		true,
    	).Return(nil)
    
    	fakeIPSetDeps.On("addIP",
    		"foo-v4",
    		netip.MustParseAddr("2.2.2.2"),
    		ipProto,
    		podUID,
    		true,
    	).Return(nil)
    
    	podIPs := []netip.Addr{netip.MustParseAddr("99.9.9.9"), netip.MustParseAddr("2.2.2.2")}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  2. cni/pkg/iptables/iptables_test.go

    		config func(cfg *Config)
    	}{
    		{
    			"default",
    			func(cfg *Config) {
    				cfg.RedirectDNS = true
    			},
    		},
    	}
    	probeSNATipv4 := netip.MustParseAddr("169.254.7.127")
    	probeSNATipv6 := netip.MustParseAddr("e9ac:1e77:90ca:399f:4d6d:ece2:2f9b:3164")
    
    	for _, tt := range cases {
    		for _, ipv6 := range []bool{false, true} {
    			t.Run(tt.name+"_"+ipstr(ipv6), func(t *testing.T) {
    				cfg := constructTestConfig()
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  3. cni/pkg/iptables/iptables.go

    		RedirectDNS:   c.RedirectDNS,
    	}
    }
    
    func NewIptablesConfigurator(cfg *Config, ext dep.Dependencies, nlDeps NetlinkDependencies) (*IptablesConfigurator, error) {
    	if cfg == nil {
    		cfg = &Config{
    			RestoreFormat: true,
    		}
    	}
    
    	configurator := &IptablesConfigurator{
    		ext:    ext,
    		nlDeps: nlDeps,
    		cfg:    cfg,
    	}
    
    	// By detecting iptables versions *here* once-for-all we are
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 19.6K bytes
    - Viewed (0)
  4. cni/pkg/cmd/root.go

    		"The key portion of the label which will be set by the race repair if label pods is true")
    	registerStringParameter(constants.RepairLabelValue, "true",
    		"The value portion of the label which will be set by the race repair if label pods is true")
    	registerStringParameter(constants.RepairNodeName, "", "The name of the managed node (will manage all nodes if unset)")
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  5. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

    	}
    
    	common.attach(cmd)
    	cmd.PersistentFlags().StringVar(&address, "address", "", "Filter workloads by address field")
    	cmd.PersistentFlags().BoolVar(&verboseProxyConfig, "verbose", true, "Output more information")
    	cmd.PersistentFlags().StringVar(&workloadsNamespace, "workload-namespace", "",
    		"Filter workloads by namespace field")
    	cmd.PersistentFlags().StringVar(&workloadNode, "workload-node", "",
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 13:11:40 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  6. cni/pkg/util/podutil_test.go

    			args: args{
    				namespace: namespaceWithAmbientEnabledLabel,
    				pod:       unlabelledPod,
    			},
    			want: true,
    		},
    		{
    			name: "ambient mode enabled for pod",
    			args: args{
    				namespace: unlabelledNamespace,
    				pod:       podWithAmbientEnabledLabel,
    			},
    			want: true,
    		},
    		{
    			name: "ambient mode enabled for both namespace and pod",
    			args: args{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 18:04:40 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  7. cni/pkg/ipset/nldeps_linux.go

    	var family uint8
    
    	if v6 {
    		family = unix.AF_INET6
    	} else {
    		family = unix.AF_INET
    	}
    	err := netlink.IpsetCreate(name, "hash:ip", netlink.IpsetCreateOptions{Comments: true, Replace: true, Family: family})
    	if ipsetErr, ok := err.(nl.IPSetError); ok && ipsetErr == nl.IPSET_ERR_EXIST {
    		return nil
    	}
    
    	return err
    }
    
    func (m *realDeps) destroySet(name string) error {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  8. istioctl/pkg/waypoint/waypoint.go

    					if err == nil {
    						// Check if gateway has Programmed condition set to true
    						for _, cond := range gwc.Status.Conditions {
    							if cond.Type == string(gateway.GatewayConditionProgrammed) && string(cond.Status) == "True" {
    								programmed = true
    								break
    							}
    						}
    					}
    					if programmed {
    						break
    					}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 16:16:40 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/server.go

    	client, err := buildKubeClient(args.KubeConfig)
    	if err != nil {
    		return nil, fmt.Errorf("error initializing kube client: %w", err)
    	}
    
    	cfg := &iptables.Config{
    		RestoreFormat: true,
    		RedirectDNS:   args.DNSCapture,
    		EnableIPv6:    args.EnableIPv6,
    	}
    
    	log.Debug("creating ipsets in the node netns")
    	set, err := createHostsideProbeIpset(cfg.EnableIPv6)
    	if err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/net.go

    		// Add IP/port combo to set. Note that we set Replace to true - a pod ip/port combo already being
    		// in the set is perfectly fine, and something we can always safely overwrite, so we will.
    		if err := hostsideProbeSet.AddIP(pip, ipProto, podUID, true); err != nil {
    			ipsetAddrErrs = append(ipsetAddrErrs, err)
    			log.Warnf("failed adding pod %s to ipset %s with ip %s, error was %s",
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.2K bytes
    - Viewed (1)
Back to top