Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 354 for cmd (0.17 sec)

  1. istioctl/pkg/workload/workload_test.go

    			verifyTestcaseOutput(t, Cmd(cli.NewFakeContext(nil)), c)
    		})
    	}
    }
    
    func verifyTestcaseOutput(t *testing.T, cmd *cobra.Command, c testcase) {
    	t.Helper()
    
    	var out bytes.Buffer
    	cmd.SetArgs(c.args)
    	cmd.SetOut(&out)
    	cmd.SetErr(&out)
    	cmd.SilenceUsage = true
    	if c.namespace != "" {
    		namespace = c.namespace
    	}
    
    	fErr := cmd.Execute()
    	output := out.String()
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  2. operator/cmd/mesh/manifest_shared_test.go

    // It returns an ObjectSet for each cmd type.
    // nolint: unparam
    func runManifestCommands(inFile, flags string, chartSource chartSourceType, fileSelect []string) (map[cmdType]*ObjectSet, error) {
    	out := make(map[cmdType]*ObjectSet)
    	for _, cmd := range testedManifestCmds {
    		log.Infof("\nRunning test command using %s\n", cmd)
    		switch cmd {
    		case cmdApply, cmdController:
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Feb 20 22:39:28 GMT 2024
    - 11.7K bytes
    - Viewed (1)
  3. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

    	}
    
    	common.attach(cmd)
    	cmd.PersistentFlags().StringVar(&address, "address", "", "Filter workloads by address field")
    	cmd.PersistentFlags().BoolVar(&verboseProxyConfig, "verbose", true, "Output more information")
    	cmd.PersistentFlags().StringVar(&workloadsNamespace, "workload-namespace", "",
    		"Filter workloads by namespace field")
    	cmd.PersistentFlags().StringVar(&workloadNode, "workload-node", "",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 01 13:11:40 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  4. istioctl/cmd/root.go

    	experimentalCmd.AddCommand(workload.Cmd(ctx))
    	experimentalCmd.AddCommand(internaldebug.DebugCommand(ctx))
    	experimentalCmd.AddCommand(precheck.Cmd(ctx))
    	experimentalCmd.AddCommand(proxyconfig.StatsConfigCmd(ctx))
    	experimentalCmd.AddCommand(checkinject.Cmd(ctx))
    	experimentalCmd.AddCommand(waypoint.Cmd(ctx))
    	experimentalCmd.AddCommand(ztunnelconfig.ZtunnelConfig(ctx))
    
    	analyzeCmd := analyze.Analyze(ctx)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 11 20:51:30 GMT 2024
    - 10K bytes
    - Viewed (0)
  5. cni/pkg/plugin/sidecar_iptables_linux.go

    // parses prevResult according to the cniVersion
    package plugin
    
    import (
    	"fmt"
    
    	"github.com/containernetworking/plugins/pkg/ns"
    
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/tools/istio-iptables/pkg/cmd"
    	"istio.io/istio/tools/istio-iptables/pkg/config"
    	"istio.io/istio/tools/istio-iptables/pkg/dependencies"
    )
    
    // getNs is a unit test override variable for interface create.
    var getNs = ns.GetNS
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 17:36:41 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  6. istioctl/pkg/injector/injector-list.go

    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			cmd.HelpFunc()(cmd, args)
    			return nil
    		},
    	}
    
    	cmd.AddCommand(injectorListCommand(cliContext))
    	return cmd
    }
    
    func injectorListCommand(ctx cli.Context) *cobra.Command {
    	var opts clioptions.ControlPlaneOptions
    	cmd := &cobra.Command{
    		Use:     "list",
    		Short:   "List sidecar injector and sidecar versions",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jan 04 03:08:06 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  7. istioctl/pkg/internaldebug/internal-debug_test.go

    			}
    			verifyExecTestOutput(t, DebugCommand(ctx), c)
    		})
    	}
    }
    
    func verifyExecTestOutput(t *testing.T, cmd *cobra.Command, c execTestCase) {
    	t.Helper()
    
    	var out bytes.Buffer
    	cmd.SetArgs(c.args)
    	cmd.SilenceUsage = true
    	cmd.SetOut(&out)
    	cmd.SetErr(&out)
    
    	fErr := cmd.Execute()
    	output := out.String()
    
    	if c.expectedOutput != "" && c.expectedOutput != output {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  8. cni/pkg/iptables/iptables.go

    	}
    
    	for _, iptVer := range iptablesVariant {
    		for _, cmd := range deleteCmds {
    			delErrs = append(delErrs, cfg.ext.Run(iptablesconstants.IPTables, &iptVer, nil, cmd...))
    		}
    
    		for _, cmd := range optionalDeleteCmds {
    			err := cfg.ext.Run(iptablesconstants.IPTables, &iptVer, nil, cmd...)
    			if err != nil {
    				log.Debugf("ignoring error deleting optional iptables rule: %v", err)
    			}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue May 07 19:54:50 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  9. istioctl/pkg/wait/wait_test.go

    	wantException bool
    }
    
    func verifyExecTestOutput(t *testing.T, cmd *cobra.Command, c execTestCase) {
    	if c.wantException {
    		// Ensure tests do not hang for 30s
    		c.args = append(c.args, "--timeout=20ms")
    	}
    	var out bytes.Buffer
    	cmd.SetArgs(c.args)
    	cmd.SilenceUsage = true
    	cmd.SetOut(&out)
    	cmd.SetErr(&out)
    
    	fErr := cmd.Execute()
    	output := out.String()
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 6.8K bytes
    - Viewed (1)
  10. istioctl/pkg/precheck/precheck.go

    	"istio.io/istio/pkg/url"
    	"istio.io/istio/pkg/util/sets"
    )
    
    func Cmd(ctx cli.Context) *cobra.Command {
    	var opts clioptions.ControlPlaneOptions
    	var skipControlPlane bool
    	outputThreshold := formatting.MessageThreshold{Level: diag.Warning}
    	var msgOutputFormat string
    	var fromCompatibilityVersion string
    	// cmd represents the upgradeCheck command
    	cmd := &cobra.Command{
    		Use:   "precheck",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 02:57:30 GMT 2024
    - 19.3K bytes
    - Viewed (0)
Back to top