Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 194 for errorea (0.16 sec)

  1. cni/pkg/nodeagent/error.go

    package nodeagent
    
    import (
    	"errors"
    	"fmt"
    )
    
    var ErrPartialAdd = errors.New("partial add error")
    
    type PartialAddError struct {
    	inner error
    }
    
    func (e *PartialAddError) Error() string {
    	return fmt.Sprintf("%s: %v", ErrPartialAdd.Error(), e.inner)
    }
    
    func (e *PartialAddError) Unwrap() []error {
    	return []error{ErrPartialAdd, e.inner}
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 1K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/server.go

    	return s.netServer.ConstructInitialSnapshot(ambientPods)
    }
    
    func (s *meshDataplane) AddPodToMesh(ctx context.Context, pod *corev1.Pod, podIPs []netip.Addr, netNs string) error {
    	var retErr error
    	err := s.netServer.AddPodToMesh(ctx, pod, podIPs, netNs)
    	if err != nil {
    		log.Errorf("failed to add pod to ztunnel: %v", err)
    		if !errors.Is(err, ErrPartialAdd) {
    			return err
    		}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/net.go

    	if err := s.netnsRunner(openNetns, func() error { return s.iptablesConfigurator.DeleteInpodRules() }); err != nil {
    		log.Errorf("failed to delete inpod rules %v", err)
    		return fmt.Errorf("failed to delete inpod rules %w", err)
    	}
    
    	if err := removePodFromHostNSIpset(pod, &s.hostsideProbeIPSet); err != nil {
    		log.Errorf("failed to remove pod %s from host ipset, error was: %v", pod.Name, err)
    		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)
  4. istioctl/pkg/util/handlers/handlers.go

    		SingleResourceType()
    	builder.ResourceNames("pods", resname)
    	infos, err := builder.Do().Infos()
    	if err != nil {
    		return nil, "", "", "", fmt.Errorf("failed retrieving: %v in the %q namespace", err, ns)
    	}
    	if len(infos) != 1 {
    		return nil, "", "", "", errors.New("expected a resource")
    	}
    	_, ok := infos[0].Object.(*corev1.Pod)
    	if ok {
    		// If we got a pod, just use its name
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Feb 06 15:01:41 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  5. cni/pkg/repair/netns.go

    }
    
    func runInHost[T any](f func() (T, error)) (T, error) {
    	var res T
    	ns, err := netns.GetNS(getPidNamespace(1))
    	if err != nil {
    		return res, fmt.Errorf("failed to get host network: %v", err)
    	}
    	err = ns.Do(func(ns netns.NetNS) error {
    		var err error
    		res, err = f()
    		return err
    	})
    	if err != nil {
    		return res, fmt.Errorf("in host network: %v", err)
    	}
    	return res, nil
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Dec 20 22:14:13 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  6. istioctl/pkg/multixds/gather.go

    					continue
    				}
    				responses = append(responses, resp)
    			}
    			token = list.ListMeta.GetContinue()
    			if token == "" {
    				break
    			}
    		}
    	} else {
    		// If there is a specific pod name in ResourceName, use the agent in the pod.
    		if len(dr.ResourceNames) != 1 {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/pod_cache.go

    	return func(nspath string) (NetnsCloser, error) {
    		nspathInContainer := filepath.Join(hostMountsPath, nspath)
    		ns, err := OpenNetns(nspathInContainer)
    		if err != nil {
    			err = fmt.Errorf("failed to open netns: %w. Make sure that the netns host path %s is mounted in under %s in the container", err, nspath, hostMountsPath)
    			log.Error(err.Error())
    		}
    		return ns, err
    	}
    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)
  8. operator/cmd/mesh/manifest_shared_test.go

    // fakeApplyManifest runs istioctl install.
    func fakeApplyManifest(inFile, flags string, chartSource chartSourceType) (*ObjectSet, error) {
    	inPath := filepath.Join(testDataDir, "input", inFile+".yaml")
    	manifest, err := runManifestCommand("install", []string{inPath}, flags, chartSource, nil)
    	if err != nil {
    		return nil, fmt.Errorf("error %s: %s", err, manifest)
    	}
    	return NewObjectSet(getAllIstioObjects()), nil
    }
    
    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)
  9. cni/pkg/plugin/sidecar_redirect.go

    	if valErr != nil {
    		return nil, fmt.Errorf("annotation value error for value %s; annotationFound = %t: %v",
    			"includeIPCidrs", isFound, valErr)
    	}
    	isFound, redir.excludeIPCidrs, valErr = getAnnotationOrDefault("excludeIPCidrs", pi.Annotations)
    	if valErr != nil {
    		return nil, fmt.Errorf("annotation value error for value %s; annotationFound = %t: %v",
    			"excludeIPCidrs", isFound, valErr)
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  10. istioctl/pkg/checkinject/checkinject.go

    `,
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) == 0 && labelPairs == "" || len(args) > 1 {
    				cmd.Println(cmd.UsageString())
    				return fmt.Errorf("check-inject requires only [<resource-type>/]<resource-name>[.<namespace>], or specify labels flag")
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			kubeClient, err := ctx.CLIClient()
    			if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
Back to top