Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ConstructInitialSnapshot (0.26 sec)

  1. cni/pkg/nodeagent/server.go

    	s.netServer.Start(ctx)
    }
    
    func (s *meshDataplane) Stop() {
    	s.netServer.Stop()
    }
    
    func (s *meshDataplane) ConstructInitialSnapshot(ambientPods []*corev1.Pod) error {
    	return s.netServer.ConstructInitialSnapshot(ambientPods)
    }
    
    func (s *meshDataplane) AddPodToMesh(ctx context.Context, pod *corev1.Pod, podIPs []netip.Addr, netNs string) error {
    	var retErr error
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 01:42:30 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/net.go

    	return s.ztunnelServer.PodAdded(ctx, pod, netns)
    }
    
    // ConstructInitialSnapshot takes a "snapshot" of current ambient pods and
    //
    // 1. Constructs a ztunnel state message to initialize ztunnel
    // 2. Syncs the host ipset
    func (s *NetServer) ConstructInitialSnapshot(ambientPods []*corev1.Pod) error {
    	var consErr []error
    
    	if err := s.syncHostIPSets(ambientPods); err != nil {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.1K bytes
    - Viewed (1)
  3. cni/pkg/nodeagent/server_test.go

    	}
    	args := f.Called(ctx, pod)
    	return args.Error(0)
    }
    
    func (f *fakeServer) Start(ctx context.Context) {
    }
    
    func (f *fakeServer) Stop() {
    }
    
    func (f *fakeServer) ConstructInitialSnapshot(ambientPods []*corev1.Pod) error {
    	if f.testWG != nil {
    		defer f.testWG.Done()
    	}
    	args := f.Called(ambientPods)
    	return args.Error(0)
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/net_test.go

    	}
    	pod := &corev1.Pod{ObjectMeta: podMeta}
    
    	fixture.ipsetDeps.On("listEntriesByIP",
    		"foo",
    	).Return([]netip.Addr{}, nil)
    
    	err := netServer.ConstructInitialSnapshot([]*corev1.Pod{pod})
    	assert.NoError(t, err)
    	if fixture.podNsMap.Get("863b91d4-4b68-4efa-917f-4b560e3e86aa") == nil {
    		t.Fatal("expected pod to be in cache")
    	}
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 14.3K bytes
    - Viewed (0)
Back to top