Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 77 for Case (0.16 sec)

  1. cni/pkg/nodeagent/informers.go

    			})
    		}
    	}
    }
    
    func (s *InformerHandlers) reconcile(input any) error {
    	event := input.(controllers.Event)
    	switch event.Latest().(type) {
    	case *corev1.Namespace:
    		return s.reconcileNamespace(input)
    	case *corev1.Pod:
    		return s.reconcilePod(input)
    	default:
    		return fmt.Errorf("unexpected event type: %+v", input)
    	}
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 08 01:03:24 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  2. istioctl/cmd/istioctl_test.go

    	fErr := rootCmd.Execute()
    
    	switch fErr.(type) {
    	case istioctlutil.CommandParseError:
    		// do nothing
    	default:
    		t.Errorf("Expected a CommandParseError, but got %q.", fErr)
    	}
    
    	// we should propagate to subcommands
    	rootCmd = GetRootCmd([]string{"analyze", "--unknown-flag"})
    	fErr = rootCmd.Execute()
    
    	switch fErr.(type) {
    	case istioctlutil.CommandParseError:
    		// do nothing
    	default:
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Aug 29 14:53:25 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  3. istioctl/pkg/authz/listener.go

    			parsedFC := &filterChain{}
    			for _, filter := range fc.Filters {
    				switch filter.Name {
    				case wellknown.HTTPConnectionManager, "envoy.http_connection_manager":
    					if cm := getHTTPConnectionManager(filter); cm != nil {
    						for _, httpFilter := range cm.GetHttpFilters() {
    							switch httpFilter.GetName() {
    							case wellknown.HTTPRoleBasedAccessControl:
    								rbacHTTP := &rbachttp.RBAC{}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Sep 11 15:29:30 GMT 2023
    - 6K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/pilot/status.go

    	for _, config := range configs {
    		cfgType := config.GetTypeUrl()
    		switch cfgType {
    		case xdsresource.ListenerType:
    			lds = formatStatus(config)
    		case xdsresource.ClusterType:
    			cds = formatStatus(config)
    		case xdsresource.RouteType:
    			rds = formatStatus(config)
    		case xdsresource.EndpointType:
    			eds = formatStatus(config)
    		case xdsresource.ExtensionConfigurationType:
    			ecds = formatStatus(config)
    		default:
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 15 04:16:55 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  5. istioctl/pkg/proxyconfig/proxyconfig.go

    				FQDN:      host.Name(fqdn),
    				Port:      port,
    				Subset:    subset,
    				Direction: model.TrafficDirection(direction),
    			}
    			switch outputFormat {
    			case summaryOutput:
    				return configWriter.PrintClusterSummary(filter)
    			case jsonOutput, yamlOutput:
    				return configWriter.PrintClusterDump(filter, outputFormat)
    			default:
    				return fmt.Errorf("output format %q not supported", outputFormat)
    			}
    		},
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 16 03:28:36 GMT 2024
    - 48K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/ztunnelserver.go

    	ret := make(chan updateResponse, 1)
    	req := updateRequest{
    		Update: data,
    		Fd:     fd,
    		Resp:   ret,
    	}
    	select {
    	case z.Updates <- req:
    	case <-ctx.Done():
    		return nil, ctx.Err()
    	}
    
    	select {
    	case r := <-ret:
    		return r.resp, r.err
    	case <-ctx.Done():
    		return nil, ctx.Err()
    	}
    }
    
    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)
  7. cni/pkg/log/uds.go

    	for _, m := range messages {
    		// There is no fatal log from CNI plugin
    		switch m.Level {
    		case "debug":
    			pluginLog.LogWithTime(log.DebugLevel, m.Msg, m.Time)
    		case "info":
    			pluginLog.LogWithTime(log.InfoLevel, m.Msg, m.Time)
    		case "warn":
    			pluginLog.LogWithTime(log.WarnLevel, m.Msg, m.Time)
    		case "error":
    			pluginLog.LogWithTime(log.ErrorLevel, m.Msg, m.Time)
    		}
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Nov 29 01:05:12 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  8. istioctl/pkg/config/config_test.go

    	"istio.io/istio/pkg/config/constants"
    )
    
    func TestConfigList(t *testing.T) {
    	cases := []testutil.TestCase{
    		//{ // case 0
    		//	Args:           strings.Split("get istioNamespace", " "),
    		//	ExpectedRegexp: regexp.MustCompile("Configure istioctl defaults"),
    		//	WantException:  false,
    		//},
    		{ // case 1
    			Args: strings.Split("list", " "),
    			ExpectedOutput: `FLAG                    VALUE            FROM
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  9. istioctl/cmd/sysexits.go

    )
    
    func GetExitCode(e error) int {
    	if strings.Contains(e.Error(), "unknown command") {
    		e = util.CommandParseError{Err: e}
    	}
    
    	switch e.(type) {
    	case util.CommandParseError:
    		return ExitIncorrectUsage
    	case analyze.FileParseError:
    		return ExitDataError
    	case analyze.AnalyzerFoundIssuesError:
    		return ExitAnalyzerFoundIssues
    	default:
    		return ExitUnknownError
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  10. istioctl/pkg/dashboard/dashboard_test.go

    	cases := []testutil.TestCase{
    		{ // case 0
    			Args:           strings.Split("--browser=false", " "),
    			ExpectedRegexp: regexp.MustCompile("Access to Istio web UIs"),
    		},
    		{ // case 1
    			Args:           strings.Split("invalid --browser=false", " "),
    			ExpectedRegexp: regexp.MustCompile(`unknown dashboard "invalid"`),
    			WantException:  true,
    		},
    		{ // case 2
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Nov 21 01:17:24 GMT 2023
    - 4.3K bytes
    - Viewed (0)
Back to top