Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 245 for errorea (0.17 sec)

  1. cni/pkg/nodeagent/ztunnelserver.go

    		return err
    	}
    
    	if resp.GetAck().GetError() != "" {
    		log.Errorf("add-workload: got ack error: %s", resp.GetAck().GetError())
    		return fmt.Errorf("got ack error: %s", resp.GetAck().GetError())
    	}
    	return nil
    }
    
    // TODO ctx is unused here
    // nolint: unparam
    func (z *ztunnelServer) sendSnapshot(ctx context.Context, conn *ZtunnelConnection) error {
    	snap := z.pods.ReadCurrentPodSnapshot()
    	for uid, wl := range snap {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  2. istioctl/pkg/dashboard/dashboard.go

    				return fmt.Errorf("name cannot be provided when a selector is specified")
    			}
    
    			if err != nil {
    				return fmt.Errorf("failed to create k8s client: %v", err)
    			}
    
    			var podName, ns string
    			if labelSelector != "" {
    				pl, err := kubeClient.PodsForSelector(context.TODO(), ctx.NamespaceOrDefault(ctx.Namespace()), labelSelector)
    				if err != nil {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Apr 15 01:29:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  3. cni/test/install_cni.go

    		if errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded) {
    			// Error was caused by interrupt/termination signal
    			t.Logf("installer complete: %v", err)
    		} else {
    			t.Errorf("installer failed: %v", err)
    		}
    	}
    
    	if cleanErr := installer.Cleanup(); cleanErr != nil {
    		t.Errorf("Error during test CNI installer cleanup, error was: %s", cleanErr)
    	}
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  4. operator/cmd/mesh/manifest-generate.go

    `,
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) != 0 {
    				return fmt.Errorf("generate accepts no positional arguments, got %#v", args)
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			if kubeClientFunc == nil {
    				kubeClientFunc = ctx.CLIClient
    			}
    			var kubeClient kube.CLIClient
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  5. cni/pkg/iptables/iptables.go

    		}
    	}
    	return errors.Join(execErrs...)
    }
    
    func (cfg *IptablesConfigurator) executeIptablesCommands(iptVer *dep.IptablesVersion, args [][]string) error {
    	var iptErrs []error
    	for _, argSet := range args {
    		iptErrs = append(iptErrs, cfg.ext.Run(iptablesconstants.IPTables, iptVer, nil, argSet...))
    	}
    	return errors.Join(iptErrs...)
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 01:42:30 GMT 2024
    - 19.2K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/netns_other.go

    // limitations under the License.
    
    package nodeagent
    
    import "errors"
    
    func inodeForFd(n NetnsFd) (uint64, error) {
    	return 0, errors.New("not implemented")
    }
    
    func NetnsSet(n NetnsFd) error {
    	return errors.New("not implemented")
    }
    
    func OpenNetns(nspath string) (NetnsCloser, error) {
    	return nil, errors.New("not implemented")
    }
    
    // inspired by netns.Do() but with an existing fd.
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Mar 14 09:32:25 GMT 2024
    - 1K bytes
    - Viewed (0)
  7. cni/pkg/install/cniconfig.go

    	}
    
    	return "", fmt.Errorf("no valid networks found in %s", confDir)
    }
    
    // newCNIConfig = istio-cni config, that should be inserted into existingCNIConfig
    func insertCNIConfig(newCNIConfig, existingCNIConfig []byte) ([]byte, error) {
    	var istioMap map[string]any
    	err := json.Unmarshal(newCNIConfig, &istioMap)
    	if err != nil {
    		return nil, fmt.Errorf("error loading Istio CNI config (JSON error): %v", err)
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  8. cni/pkg/pluginlistener/listener.go

    	"fmt"
    	"net"
    	"os"
    	"path/filepath"
    
    	"istio.io/istio/pkg/log"
    )
    
    func NewListener(path string) (net.Listener, error) {
    	// Remove unix socket before use.
    	if err := os.Remove(path); err != nil && !os.IsNotExist(err) {
    		// Anything other than "file not found" is an error.
    		return nil, fmt.Errorf("failed to remove unix://%s: %v", path, err)
    	}
    
    	// Attempt to create the folder in case it doesn't exist
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  9. cni/pkg/log/uds.go

    	if sockAddress == "" {
    		return nil
    	}
    	log.Info("Start a UDS server for CNI plugin logs")
    	unixListener, err := uds.NewListener(sockAddress)
    	if err != nil {
    		return fmt.Errorf("failed to create UDS listener: %v", err)
    	}
    	go func() {
    		if err := l.loggingServer.Serve(unixListener); network.IsUnexpectedListenerError(err) {
    			log.Errorf("Error running UDS log server: %v", err)
    		}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 01:05:12 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/net_test.go

    	// no calls to ztunnel if iptables failed
    	assert.Equal(t, ztunnelServer.addedPods.Load(), 0)
    
    	// error is not partial error
    	if errors.Is(err, ErrPartialAdd) {
    		t.Fatal("expected not a partial error")
    	}
    }
    
    func TestConstructInitialSnap(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    	setupLogging()
    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