- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for spre (0.13 sec)
-
cni/pkg/nodeagent/pod_cache.go
// lock current snapshot pod map p.mu.RLock() defer p.mu.RUnlock() if info, f := p.currentPodCache[uid]; f { return info.Netns } return nil } // make sure uid is in the cache, even if we don't have a netns func (p *podNetnsCache) Ensure(uid string) { p.mu.Lock() defer p.mu.Unlock() if _, ok := p.currentPodCache[uid]; !ok { p.currentPodCache[uid] = WorkloadInfo{}
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Apr 12 21:47:31 GMT 2024 - 4.5K bytes - Viewed (0) -
cni/pkg/nodeagent/podcgroupns_test.go
} expectedUID := "863b91d4-4b68-4efa-917f-4b560e3e86aa" if podUIDNetns[expectedUID] == (WorkloadInfo{}) { t.Fatal("expected to find pod netns under pod uid") } } // copied and modified from spire func TestGetContainerIDFromCGroups(t *testing.T) { makeCGroups := func(groupPaths []string) []Cgroup { var out []Cgroup for _, groupPath := range groupPaths { out = append(out, Cgroup{
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Apr 12 21:47:31 GMT 2024 - 4.6K bytes - Viewed (0) -
operator/cmd/mesh/manifest_shared_test.go
return err } // runManifestCommand runs the given manifest command. If filenames is set, passes the given filenames as -f flag, // flags is passed to the command verbatim. If you set both flags and path, make sure to not use -f in flags. func runManifestCommand(command string, filenames []string, flags string, chartSource chartSourceType, fileSelect []string) (string, error) { var args string if command == "install" {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Feb 20 22:39:28 GMT 2024 - 11.7K bytes - Viewed (1) -
cni/pkg/nodeagent/net.go
func (s *NetServer) AddPodToMesh(ctx context.Context, pod *corev1.Pod, podIPs []netip.Addr, netNs string) error { log.Infof("in pod mode - adding pod %s/%s to ztunnel ", pod.Namespace, pod.Name) // make sure the cache is aware of the pod, even if we don't have the netns yet. s.currentPodSnapshot.Ensure(string(pod.UID)) openNetns, err := s.getOrOpenNetns(pod, netNs) if err != nil { return err }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 12.2K bytes - Viewed (1) -
cni/pkg/nodeagent/net_test.go
assert.NoError(t, err) assert.Equal(t, ztunnelServer.deletedPods.Load(), 1) assert.Equal(t, nlDeps.DelInpodMarkIPRuleCnt.Load(), 1) assert.Equal(t, nlDeps.DelLoopbackRoutesCnt.Load(), 1) // make sure the uid was taken from cache and netns closed netns := fixture.podNsMap.Take(string(pod.UID)) assert.Equal(t, nil, netns) // run gc to clean up ns:
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 16.4K bytes - Viewed (0) -
cni/pkg/iptables/iptables_test.go
err := iptConfigurator.CreateInpodRules(&probeSNATipv4) if err != nil { t.Fatal(err) } compareToGolden(t, false, tt.name, ext.ExecutedAll) *ext = dep.DependenciesStub{} // run another time to make sure we are idempotent err = iptConfigurator.CreateInpodRules(&probeSNATipv4) if err != nil { t.Fatal(err) } compareToGolden(t, false, tt.name, ext.ExecutedAll) } func ipstr(ipv6 bool) string {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 3.7K bytes - Viewed (0) -
cni/test/install_cni.go
"istio.io/istio/cni/pkg/util" "istio.io/istio/pkg/file" "istio.io/istio/pkg/slices" "istio.io/istio/pkg/test/env" "istio.io/istio/pkg/test/util/retry" ) const ( cniConfSubDir = "/testdata/pre/" k8sSvcAcctSubDir = "/testdata/k8s_svcacct/" defaultFileMode = 0o644 cniConfName = "CNI_CONF_NAME" chainedCNIPluginName = "CHAINED_CNI_PLUGIN" cniNetworkConfigName = "CNI_NETWORK_CONFIG"
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 12.5K bytes - Viewed (0) -
cni/pkg/nodeagent/ztunnelserver.go
} // ZDS protocol is very simple, for every message sent, and ack is sent. // the ack only has temporal correlation (i.e. it is the first and only ack msg after the message was sent) // All this to say, that we want to make sure that message to ztunnel are sent from a single goroutine // so we don't mix messages and acks. // nolint: unparam func (z *ztunnelServer) handleConn(ctx context.Context, conn *ZtunnelConnection) error { defer conn.Close()
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Apr 12 21:47:31 GMT 2024 - 12.4K bytes - Viewed (0) -
cni/test/install_k8s_test.go
chainedCNIPlugin: true, resultFileName: "00-calico.conflist", expectedOutputFile: testDataDir + "/expected/10-calico.conflist-istioconfig", expectedPostCleanFile: testDataDir + "/pre/calico.conflist", cniConfDirOrderedFiles: []string{"calico.conflist", "minikube_cni.conf"}, }, { name: "First file without pre-plugins--.conf", chainedCNIPlugin: true,
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Jul 27 18:01:48 GMT 2022 - 8K bytes - Viewed (0) -
cni/pkg/repair/repaircontroller.go
) func (c *Controller) deleteBrokenPod(pod *corev1.Pod) error { m := podsRepaired.With(typeLabel.Value(deleteType)) repairLog.Infof("Pod detected as broken, deleting: %s/%s", pod.Namespace, pod.Name) // Make sure we are deleting what we think we are... preconditions := &metav1.Preconditions{ UID: &pod.UID, ResourceVersion: &pod.ResourceVersion, }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Sat Feb 10 00:31:55 GMT 2024 - 10.4K bytes - Viewed (0)