Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for Warnf (0.05 sec)

  1. cni/pkg/install/cniconfig.go

    				installLog.Warnf("Error loading CNI config file %s: no 'type'; perhaps this is a .conflist?", confFile)
    				continue
    			}
    
    			confList, err = libcni.ConfListFromConf(conf)
    			if err != nil {
    				installLog.Warnf("Error converting CNI config file %s to list: %v", confFile, err)
    				continue
    			}
    		}
    		if len(confList.Plugins) == 0 {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. cni/pkg/plugin/sidecar_redirect.go

    		redir.dnsRedirect, valErr = strconv.ParseBool(v)
    		if valErr != nil {
    			log.Warnf("cannot parse DNS capture environment variable %v", valErr)
    		}
    	}
    	if v, found := pi.ProxyEnvironments["ISTIO_DUAL_STACK"]; found {
    		// parse and set the bool value of dnsRedirect
    		redir.dualStack, valErr = strconv.ParseBool(v)
    		if valErr != nil {
    			log.Warnf("cannot parse dual stack environment variable %v", valErr)
    		}
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/net.go

    	ingressMode := false
    	if a, f := pod.Annotations[annotation.AmbientBypassInboundCapture.Name]; f {
    		var err error
    		ingressMode, err = strconv.ParseBool(a)
    		if err != nil {
    			log.Warnf("annotation %v=%q found, but only '*' is supported", annotation.AmbientBypassInboundCapture.Name, a)
    		}
    	}
    
    	log.Debug("calling CreateInpodRules")
    	if err := s.netnsRunner(openNetns, func() error {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Oct 21 16:48:55 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/server.go

    	s.kubeClient.RunAndWait(s.ctx.Done())
    	log.Info("CNI ambient server kubeclient started")
    	pods := s.handlers.GetActiveAmbientPodSnapshot()
    	err := s.dataplane.ConstructInitialSnapshot(pods)
    	if err != nil {
    		log.Warnf("failed to construct initial snapshot: %v", err)
    	}
    
    	log.Info("CNI ambient server marking ready")
    	s.Ready()
    	s.dataplane.Start(s.ctx)
    	s.handlers.Start()
    }
    
    func (s *Server) Stop() {
    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/nodeagent/informers.go

    	var pods []*corev1.Pod
    	for _, pod := range s.pods.List(metav1.NamespaceAll, klabels.Everything()) {
    		ns := s.namespaces.Get(pod.Namespace, "")
    		if ns == nil {
    			log.Warnf("failed to find namespace %s for pod %s", pod.Namespace, pod.Name)
    		}
    
    		// Exclude ztunnels, and terminated daemonset pods
    		// from the snapshot.
    		if !util.IsZtunnelPod(s.systemNamespace, pod) &&
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. cni/pkg/pluginlistener/listener.go

    	}
    
    	// Attempt to create the folder in case it doesn't exist
    	if err := os.MkdirAll(filepath.Dir(path), 0o750); err != nil {
    		// If we cannot create it, just warn here - we will fail later if there is a real error
    		log.Warnf("Failed to create directory for %v: %v", path, err)
    	}
    
    	var err error
    	listener, err := net.Listen("unix", path)
    	if err != nil {
    		return nil, fmt.Errorf("failed to listen on unix socket %q: %v", path, err)
    	}
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. cni/pkg/iptables/iptables_linux.go

    		// IPv6 may be enabled, but only partially
    		v, err := ReadSysctl(ipv6DisabledLo)
    		if v != "1" {
    			// If we got an error, we will proceed. Maybe it will work anyways
    			if err != nil {
    				log.Warnf("attempted to read %q got error: %v; attemping to continue", ipv6DisabledLo, err)
    			}
    			cidrs = append(cidrs, "0::0/0")
    		} else {
    			log.Debugf("IPv6 is enabled, but the loopback interface has IPv6 disabled; skipping")
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Sep 06 09:44:28 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. cni/pkg/repair/netns.go

    		}
    
    		if !match {
    			// Not the network we want, skip
    			continue
    		}
    		s, err := p.Stat()
    		if err != nil {
    			// Unexpected... we will use it, but only if we find nothing without errors
    			log.Warnf("failed to read proc %v stats: %v", p.PID, err)
    			if best == "" {
    				best = ns
    			}
    			continue
    		}
    		// Get the oldest one.
    		if s.Starttime < oldest {
    			oldest = s.Starttime
    			best = ns
    		}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jun 28 19:12:54 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. istioctl/pkg/dashboard/dashboard.go

    					return fmt.Errorf("not able to locate pod with selector %s: %v", labelSelector, err)
    				}
    
    				if len(pl.Items) < 1 {
    					return errors.New("no pods found")
    				}
    
    				if len(pl.Items) > 1 {
    					log.Warnf("more than 1 pods fits selector: %s; will use pod: %s", labelSelector, pl.Items[0].Name)
    				}
    
    				// only use the first pod in the list
    				podName = pl.Items[0].Name
    				ns = pl.Items[0].Namespace
    			} else {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Apr 15 01:29:35 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  10. cni/pkg/install/install.go

    		if len(cfg.CNIConfName) > 0 || !cfg.ChainedCNIPlugin {
    			// Install was run with overridden CNI config file so don't error out on preempt check
    			// Likely the only use for this is testing the script
    			installLog.Warnf("CNI config file %q preempted by %q", cniConfigFilepath, defaultCNIConfigFilepath)
    		} else {
    			return fmt.Errorf("CNI config file %q preempted by %q", cniConfigFilepath, defaultCNIConfigFilepath)
    		}
    	}
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Aug 09 21:33:51 UTC 2024
    - 13.5K bytes
    - Viewed (0)
Back to top