Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 107 for argc (0.15 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
    			Args:           strings.Split("controlz --browser=false", " "),
    Go
    - Registered: Wed May 08 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 1, with Istiod instance
    			args:           []string{},
    			expectedString: "NAME     CLUSTER     CDS     LDS     EDS     RDS     ECDS     ISTIOD",
    		},
    		{ // 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
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  3. istioctl/pkg/tag/tag.go

    without manual relabeling of the "istio.io/rev" tag.
    `,
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) != 0 {
    				return fmt.Errorf("unknown subcommand %q", args[0])
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			cmd.HelpFunc()(cmd, args)
    			return nil
    		},
    	}
    
    	cmd.AddCommand(tagSetCommand(ctx))
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  4. istioctl/pkg/kubeinject/kubeinject_test.go

    		{ // case 0
    			Args:           []string{},
    			ExpectedRegexp: regexp.MustCompile(`filename not specified \(see --filename or -f\)`),
    			WantException:  true,
    		},
    		{ // case 1
    			Args:           strings.Split("-f missing.yaml", " "),
    			ExpectedRegexp: regexp.MustCompile(`open missing.yaml: no such file or directory`),
    			WantException:  true,
    		},
    		{ // case 2
    			Args: strings.Split(
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  5. istioctl/pkg/util/testutil/util.go

    	t.Helper()
    
    	cmd.SetArgs(c.Args)
    
    	var out bytes.Buffer
    	cmd.SetOut(&out)
    	cmd.SetErr(&out)
    	cmd.SilenceUsage = true
    
    	fErr := cmd.Execute()
    	output := out.String()
    
    	if c.ExpectedOutput != "" && c.ExpectedOutput != output {
    		t.Fatalf("Unexpected output for '%s %s'\n got: %q\nwant: %q", cmd.Name(),
    			strings.Join(c.Args, " "), output, c.ExpectedOutput)
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 2K bytes
    - Viewed (0)
  6. cni/README.md

        - istio-proxy container exists and
            - does not have DISABLE_ENVOY environment variable (which triggers proxyless mode)
            - has a istio-proxy container, with first 2 args "proxy" and "sidecar" - or less then 2 args, or first arg not proxy.
            - "sidecar.istio.io/inject" is not false
            - "sidecar.istio.io/status" exists
    
    ### Redirect API
    
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  7. istioctl/pkg/waypoint/waypoint.go

      # List all waypoints in a specific namespace
      istioctl x waypoint list --namespace default`,
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) != 0 {
    				return fmt.Errorf("unknown subcommand %q", args[0])
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			cmd.HelpFunc()(cmd, args)
    			return nil
    		},
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 19:45:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  8. 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
    			args:           strings.Split("po not-a-pod", " "),
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  9. cni/pkg/plugin/kubernetes.go

    			// Get proxy container env variable, and extract out ProxyConfig from it.
    			for _, e := range c.Env {
    				pi.ProxyEnvironments[e.Name] = e.Value
    			}
    			if len(c.Args) >= 2 && c.Args[0] == "proxy" {
    				pi.ProxyType = c.Args[1]
    			}
    			if c.SecurityContext != nil {
    				pi.ProxyUID = c.SecurityContext.RunAsUser
    				pi.ProxyGID = c.SecurityContext.RunAsGroup
    			}
    		}
    	}
    	return pi
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  10. cni/deployments/kubernetes/Dockerfile.install-cni

    # BASE_DISTRIBUTION is used to switch between the old base distribution and distroless base images
    ARG BASE_DISTRIBUTION=debug
    
    # Version is the base image version from the TLD Makefile
    ARG BASE_VERSION=latest
    ARG ISTIO_BASE_REGISTRY=gcr.io/istio-release
    
    # The following section is used as base image if BASE_DISTRIBUTION=debug
    FROM ${ISTIO_BASE_REGISTRY}/base:${BASE_VERSION} as debug
    
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 00:24:50 GMT 2024
    - 1.4K bytes
    - Viewed (0)
Back to top