Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 219 for error (0.14 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 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 1K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/ztunnelserver.go

    			case err == nil:
    				log.Warn("ztunnel protocol error, unexpected message")
    				return fmt.Errorf("ztunnel protocol error, unexpected message")
    			default:
    				// we get here if error is deadline exceeded, which means ztunnel is alive.
    			}
    
    		case <-ctx.Done():
    			return nil
    		}
    	}
    }
    
    func (z *ztunnelServer) PodDeleted(ctx context.Context, uid string) error {
    	r := &zdsapi.WorkloadRequest{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  3. istioctl/pkg/dashboard/dashboard.go

    		Aliases: []string{"dash", "d"},
    		Short:   "Access to Istio web UIs",
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) != 0 {
    				return fmt.Errorf("unknown dashboard %q", args[0])
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			cmd.HelpFunc()(cmd, args)
    			return nil
    		},
    	}
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Apr 15 01:29:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  4. 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 May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  5. 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 May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  6. cni/pkg/iptables/iptables.go

    func (cfg *IptablesConfigurator) addLoopbackRoute() error {
    	return cfg.nlDeps.AddLoopbackRoutes(cfg.cfg)
    }
    
    func (cfg *IptablesConfigurator) delLoopbackRoute() error {
    	return cfg.nlDeps.DelLoopbackRoutes(cfg.cfg)
    }
    
    func (cfg *IptablesConfigurator) addInpodMarkIPRule() error {
    	return cfg.nlDeps.AddInpodMarkIPRule(cfg.cfg)
    }
    
    func (cfg *IptablesConfigurator) delInpodMarkIPRule() error {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 19.6K bytes
    - Viewed (0)
  7. 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 May 01 22:53:12 GMT 2024
    - Last Modified: Thu Mar 14 09:32:25 GMT 2024
    - 1K bytes
    - Viewed (0)
  8. 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)
  9. istioctl/pkg/tag/tag_test.go

    			if tc.error == "" && err != nil {
    				t.Fatalf("expected no error, got %v", err)
    			}
    			if tc.error != "" {
    				if err == nil {
    					t.Fatalf("expected error to include \"%s\" but got none", tc.error)
    				}
    				if !strings.Contains(err.Error(), tc.error) {
    					t.Fatalf("expected \"%s\" in error, got %v", tc.error, err)
    				}
    			}
    		})
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Nov 17 22:41:06 GMT 2023
    - 8.7K bytes
    - Viewed (0)
  10. cni/pkg/ipset/nldeps_mock.go

    func (m *MockedIpsetDeps) deleteIP(name string, ip netip.Addr, ipProto uint8) error {
    	args := m.Called(name, ip, ipProto)
    	return args.Error(0)
    }
    
    func (m *MockedIpsetDeps) flush(name string) error {
    	args := m.Called(name)
    	return args.Error(0)
    }
    
    func (m *MockedIpsetDeps) clearEntriesWithComment(name, comment string) error {
    	args := m.Called(name, comment)
    	return args.Error(0)
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 1.8K bytes
    - Viewed (0)
Back to top