- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for replay (0.16 sec)
-
cni/pkg/nodeagent/pod_cache.go
// lock current snapshot pod map p.mu.Lock() defer p.mu.Unlock() if existing := p.currentPodCache[uid]; existing.Netns != nil { if existing.Netns.Inode() == workload.Netns.Inode() { workload.Netns.Close() // Replace the workload, but keep the old Netns p.currentPodCache[uid] = WorkloadInfo{ Workload: workload.Workload, Netns: existing.Netns, } // already in cache return existing.Netns }
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/net.go
// For each pod IP for _, pip := range podIPs { // Add to host ipset log.Debugf("adding pod %s probe to ipset %s with ip %s", pod.Name, hostsideProbeSet.Prefix, pip) // 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 {
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/ipset/nldeps_mock.go
args := m.Called(name) return args.Error(0) } func (m *MockedIpsetDeps) addIP(name string, ip netip.Addr, ipProto uint8, comment string, replace bool) error { args := m.Called(name, ip, ipProto, comment, replace) return args.Error(0) } func (m *MockedIpsetDeps) deleteIP(name string, ip netip.Addr, ipProto uint8) error { args := m.Called(name, ip, ipProto) return args.Error(0) }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 1.8K bytes - Viewed (0) -
cni/pkg/plugin/plugin_test.go
return nil } // returns the test server URL and a dispose func for the test server func setupCNIEventClientWithMockServer(serverErr bool) (string, func() bool) { cniAddServerCalled := false // replace the global CNI client with mock newCNIClient = func(address, path string) CNIEventClient { c := http.DefaultClient eventC := CNIEventClient{ client: c, url: address + path, }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed May 08 15:58:51 GMT 2024 - 17.5K bytes - Viewed (0) -
cni/pkg/nodeagent/informers.go
// the CNI plugin chain, and have a PodIP. // // If PodIPs exists, it is preferred, otherwise fallback to PodIP. // // If we get to this point and have a pod that really and truly has no IP in either of those, // it's not routable at this point and something is wrong/we should discard this event. podIPs := util.GetPodIPsIfPresent(pod) if len(podIPs) == 0 {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri May 03 19:29:42 GMT 2024 - 9.6K bytes - Viewed (0) -
istioctl/pkg/validate/validate.go
iop, err := operatoristio.UnmarshalIstioOperator(by, false) if err != nil { return nil, err } return nil, operatorvalidate.CheckIstioOperator(iop, true) } } // Didn't really validate. This is OK, as we often get non-Istio Kubernetes YAML // we can't complain about. return nil, nil }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Mon Jan 22 17:58:52 GMT 2024 - 15K bytes - Viewed (0) -
cni/pkg/ipset/ipset.go
} func (m *IPSet) AddIP(ip netip.Addr, ipProto uint8, comment string, replace bool) error { ipToInsert := ip.Unmap() // We have already Unmap'd, so we can do a simple IsV6 y/n check now if ipToInsert.Is6() { return m.Deps.addIP(m.V6Name, ipToInsert, ipProto, comment, replace) } return m.Deps.addIP(m.V4Name, ipToInsert, ipProto, comment, replace) } func (m *IPSet) DeleteIP(ip netip.Addr, ipProto uint8) error {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 3.9K bytes - Viewed (0) -
cni/pkg/install/install.go
return err } installLog.Info("Detected changes to the node-level CNI setup, checking to see if configs or binaries need redeploying") // We don't support (or want) to silently (re)deploy any binaries that were not in the initial "snapshot" // so we intentionally discard/do not update the list of installedBins on redeploys. if _, err := in.installAll(ctx); err != nil { return err }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu Feb 08 18:52:24 GMT 2024 - 10.8K bytes - Viewed (0) -
istioctl/pkg/describe/describe.go
*structpb.Value } const ( k8sSuffix = ".svc." + constants.DefaultClusterLocalDomain printLevel0 = 0 printLevel1 = 3 printLevel2 = 6 ) func printSpaces(numSpaces int) string { return strings.Repeat(" ", numSpaces) } var ( // Ignore unmeshed pods. This makes it easy to suppress warnings about kube-system etc ignoreUnmeshed = false describeNamespace string )
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Sat Apr 13 05:23:38 GMT 2024 - 50.4K bytes - Viewed (0) -
cni/pkg/install/kubeconfig.go
} return kubeconfig{ Full: string(fullYaml), Redacted: string(redacted), }, nil } // maybeWriteKubeConfigFile will validate the existing kubeConfig file, and rewrite/replace it if required. func maybeWriteKubeConfigFile(cfg *config.InstallConfig) error { kc, err := createKubeConfig(cfg) if err != nil { return err } if err := checkExistingKubeConfigFile(cfg, kc); err != nil {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Aug 11 01:19:03 GMT 2023 - 4.9K bytes - Viewed (0)