Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 121 for Case (0.17 sec)

  1. 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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Nov 21 01:17:24 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  2. istioctl/pkg/proxystatus/proxystatus_test.go

    		},
    		{ // case 2: supplying nonexistent pod name should result in error with flag
    			args:          strings.Split("deployment/random-gibberish", " "),
    			wantException: true,
    		},
    		{ // case 3: supplying nonexistent deployment name
    			args:          strings.Split("deployment/random-gibberish.default", " "),
    			wantException: true,
    		},
    		{ // case 4: supplying nonexistent deployment name in nonexistent namespace
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  3. cni/pkg/install/install_test.go

    			go func(ctx context.Context) {
    				errChan <- in.sleepWatchInstall(ctx, sets.String{})
    			}(ctx)
    
    			select {
    			case <-readyChan:
    				assert.Equal(t, isReady.Load(), true)
    			case err := <-errChan:
    				if err == nil {
    					t.Fatal("invalid configuration detected")
    				}
    				t.Fatal(err)
    			case <-time.After(5 * time.Second):
    				t.Fatal("timed out waiting for isReady to be set to true")
    			}
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  4. istioctl/pkg/describe/describe_test.go

    	}
    	cases := []execAndK8sConfigTestCase{
    		{ // case 0
    			args:           []string{},
    			expectedString: "Describe resource and related Istio configuration",
    		},
    		{ // case 2 no pod
    			args:           strings.Split("pod", " "),
    			expectedString: "Error: expecting pod name",
    			wantException:  true, // "istioctl experimental inspect pod" should fail
    		},
    		{ // case 3 unknown pod
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  5. operator/cmd/mesh/profile-dump.go

    	switch outputFormat {
    	case jsonOutput, yamlOutput, flagsOutput:
    	default:
    		return fmt.Errorf("unknown output format: %s", outputFormat)
    	}
    	return nil
    }
    
    // yamlToFormat converts the generated yaml config to the expected format
    func yamlToFormat(yaml, outputFormat string) (string, error) {
    	var output string
    	switch outputFormat {
    	case jsonOutput:
    		j, err := yamlToPrettyJSON(yaml)
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  6. manifests/charts/istiod-remote/templates/mutatingwebhook.yaml

        operator.istio.io/component: "Pilot"
        app: sidecar-injector
        release: {{ .Release.Name }}
    webhooks:
    {{- /* Set up the selectors. First section is for revision, rest is for "default" revision */}}
    
    {{- /* Case 1: namespace selector matches, and object doesn't disable */}}
    {{- /* Note: if both revision and legacy selector, we give precedence to the legacy one */}}
    Others
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Mar 07 06:39:27 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  7. istioctl/pkg/writer/envoy/configdump/listener.go

    	equality := "="
    	switch v := match.GetMatcherTree().GetTreeType().(type) {
    	case *matcher.Matcher_MatcherTree_ExactMatchMap:
    		m = v.ExactMatchMap.Map
    	case *matcher.Matcher_MatcherTree_PrefixMatchMap:
    		m = v.PrefixMatchMap.Map
    		equality = "^"
    	case *matcher.Matcher_MatcherTree_CustomMatch:
    		tc := v.CustomMatch.GetTypedConfig()
    		switch tc.TypeUrl {
    		case IPMatcher:
    			ip := protoconv.SilentlyUnmarshalAny[matcher.IPMatcher](tc)
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  8. cni/pkg/util/pluginutil.go

    }
    
    // Waits until a file is modified (returns nil), the context is cancelled (returns context error), or returns error
    func (w *Watcher) Wait(ctx context.Context) error {
    	select {
    	case <-w.Events:
    		return nil
    	case err := <-w.Errors:
    		return err
    	case <-ctx.Done():
    		return ctx.Err()
    	}
    }
    
    func (w *Watcher) Close() {
    	_ = w.watcher.Close()
    }
    
    // Creates a file watcher that watches for any changes to the directory
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  9. istioctl/pkg/workload/workload_test.go

    			expectedOutput:    "Error: expecting a workload namespace\n",
    		},
    		{
    			description:       "valid case - minimal flags, infer defaults",
    			args:              strings.Split("group create --name foo --namespace bar", " "),
    			expectedException: false,
    			expectedOutput:    defaultYAML,
    		},
    		{
    			description: "valid case - create full workload group",
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  10. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

    		Aliases: []string{"certificates", "certs", "cert"},
    		Args:    common.validateArgs,
    		RunE: runConfigDump(ctx, common, func(cw *ztunnelDump.ConfigWriter) error {
    			switch common.outputFormat {
    			case summaryOutput:
    				return cw.PrintSecretSummary()
    			case jsonOutput, yamlOutput:
    				return cw.PrintSecretDump(common.outputFormat)
    			default:
    				return fmt.Errorf("output format %q not supported", common.outputFormat)
    			}
    		}),
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Apr 22 15:39:28 GMT 2024
    - 22.2K bytes
    - Viewed (0)
Back to top