Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NewIptablesConfigurator (0.34 sec)

  1. cni/pkg/iptables/iptables_test.go

    			t.Run(tt.name+"_"+ipstr(ipv6), func(t *testing.T) {
    				cfg := constructTestConfig()
    				cfg.EnableIPv6 = ipv6
    				tt.config(cfg)
    				ext := &dep.DependenciesStub{}
    				iptConfigurator, _, _ := NewIptablesConfigurator(cfg, ext, ext, EmptyNlDeps())
    				err := iptConfigurator.CreateInpodRules(scopes.CNIAgent, probeSNATipv4, probeSNATipv6, tt.ingressMode)
    				if err != nil {
    					t.Fatal(err)
    				}
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Oct 15 15:39:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. cni/pkg/iptables/iptables_e2e_test.go

    	probeSNATipv6 := netip.MustParseAddr("e9ac:1e77:90ca:399f:4d6d:ece2:2f9b:3164")
    
    	cfg := &Config{}
    	tt.config(cfg)
    
    	deps := &dep.RealDependencies{}
    	iptConfigurator, _, _ := NewIptablesConfigurator(cfg, deps, deps, EmptyNlDeps())
    	assert.NoError(t, iptConfigurator.CreateInpodRules(scopes.CNIAgent, probeSNATipv4, probeSNATipv6, false))
    
    	t.Log("starting cleanup")
    	// Cleanup, should work
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Oct 15 15:39:28 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/net_test.go

    }
    
    func getTestFixure(ctx context.Context) netTestFixture {
    	podNsMap := newPodNetnsCache(openNsTestOverride)
    	nlDeps := &fakeIptablesDeps{}
    	iptablesConfigurator, _, _ := iptables.NewIptablesConfigurator(nil, &dependencies.DependenciesStub{}, &dependencies.DependenciesStub{}, nlDeps)
    
    	ztunnelServer := &fakeZtunnel{}
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jul 25 16:13:38 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/server.go

    	ztunnelServer, err := newZtunnelServer(args.ServerSocket, podNsMap)
    	if err != nil {
    		return nil, fmt.Errorf("error initializing the ztunnel server: %w", err)
    	}
    
    	hostIptables, podIptables, err := iptables.NewIptablesConfigurator(cfg, realDependenciesHost(), realDependenciesInpod(), iptables.RealNlDeps())
    	if err != nil {
    		return nil, fmt.Errorf("error configuring iptables: %w", err)
    	}
    
    	// Create hostprobe rules now, in the host netns
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Sep 25 20:54:34 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. cni/pkg/iptables/iptables.go

    }
    
    func ipbuildConfig(c *Config) *iptablesconfig.Config {
    	return &iptablesconfig.Config{
    		TraceLogging: c.TraceLogging,
    		EnableIPv6:   c.EnableIPv6,
    		RedirectDNS:  c.RedirectDNS,
    	}
    }
    
    func NewIptablesConfigurator(
    	cfg *Config,
    	hostDeps dep.Dependencies,
    	podDeps dep.Dependencies,
    	nlDeps NetlinkDependencies,
    ) (*IptablesConfigurator, *IptablesConfigurator, error) {
    	if cfg == nil {
    		cfg = &Config{}
    	}
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Oct 15 15:39:28 UTC 2024
    - 23.3K bytes
    - Viewed (0)
Back to top