- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 152 for execute (0.39 sec)
-
istioctl/cmd/istioctl_test.go
rootCmd := GetRootCmd([]string{"--unknown-flag"}) 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:
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Tue Aug 29 14:53:25 GMT 2023 - 1.5K bytes - Viewed (0) -
istioctl/pkg/util/testutil/util.go
func VerifyOutput(t *testing.T, cmd *cobra.Command, c TestCase) { 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 Apr 24 22:53:08 GMT 2024 - Last Modified: Thu Jun 15 15:02:17 GMT 2023 - 2K bytes - Viewed (0) -
istioctl/cmd/root_test.go
_ = parent.PersistentFlags().String(childFlag2, "", childFlag2) parent.AddCommand(child) // verify both parent flags and the child flag are visible by default parent.SetArgs([]string{"child", "--help"}) if err := parent.Execute(); err != nil { t.Fatal(err) } got := out.String() out.Reset() checkHelpForFlag(t, got, parentFlag0, true) checkHelpForFlag(t, got, parentFlag1, true) checkHelpForFlag(t, got, parentFlag2, true)
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Fri Jan 15 17:59:55 GMT 2021 - 2.4K bytes - Viewed (0) -
istioctl/pkg/proxystatus/proxystatus_test.go
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 { t.Fatalf("Unexpected output for 'istioctl %s'\n got: %q\nwant: %q", strings.Join(c.args, " "), output, c.expectedOutput) }
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) -
istioctl/pkg/admin/istiodconfig.go
return err default: return fmt.Errorf("output format %q not supported", ga.outputFormat) } } type istiodConfigLog struct { state flagState } func (id *istiodConfigLog) execute(out io.Writer) error { return id.state.run(out) } func chooseClientFlag(ctrzClient *ControlzClient, reset bool, outputLogLevel, stackTraceLevel, outputFormat string) *istiodConfigLog { if reset {
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Sat Apr 13 05:23:38 GMT 2024 - 13.5K bytes - Viewed (0) -
istioctl/pkg/proxyconfig/proxyconfig.go
if eds { path += "?include_eds=true" } debug, err := kubeClient.EnvoyDoWithPort(context.TODO(), podName, podNamespace, "GET", path, proxyAdminPort) if err != nil { return nil, fmt.Errorf("failed to execute command on %s.%s sidecar: %v", podName, podNamespace, err) } return debug, err }
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Tue Apr 16 03:28:36 GMT 2024 - 48K bytes - Viewed (0) -
istioctl/pkg/describe/describe_test.go
rootCmd := Cmd(ctx) rootCmd.SetArgs(c.args) rootCmd.SetOut(&out) rootCmd.SetErr(&out) if c.namespace != "" { describeNamespace = c.namespace } fErr := rootCmd.Execute() output := out.String() if c.expectedOutput != "" && c.expectedOutput != output { t.Fatalf("Unexpected output for 'istioctl %s'\n got: %q\nwant: %q", strings.Join(c.args, " "), output, c.expectedOutput) }
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) -
cni/pkg/iptables/iptables.go
var execErrs []error if cfg.cfg.RestoreFormat { // Execute iptables-restore execErrs = append(execErrs, cfg.executeIptablesRestoreCommand(iptablesBuilder, &cfg.iptV, true)) // Execute ip6tables-restore if cfg.cfg.EnableInboundIPv6 { execErrs = append(execErrs, cfg.executeIptablesRestoreCommand(iptablesBuilder, &cfg.ipt6V, false)) } } else { // Execute iptables commands execErrs = append(execErrs,
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Fri Apr 12 01:42:30 GMT 2024 - 19.2K bytes - Viewed (0) -
operator/cmd/mesh/operator_test.go
} kubeClientFunc = func() (kube.CLIClient, error) { return nil, nil } rootCmd := GetRootCmd(cli.NewFakeContext(&cli.NewFakeContextOption{ Version: "25", }), args) err := rootCmd.Execute() assert.NoError(t, err) readActions := map[string]bool{ "get": true, "list": true, "watch": true, } actions := extendedClient.Kube().(*fake.Clientset).Actions()
Go - Registered: Wed Mar 20 22:53:08 GMT 2024 - Last Modified: Tue Aug 29 14:15:33 GMT 2023 - 6.4K bytes - Viewed (0) -
common/scripts/tracing.sh
tid="$(<<<"${TRACEPARENT:-}" cut -d- -f2)" tid="${tid:-"$(tr -dc 'a-f0-9' < /dev/urandom | head -c 32)"}" # Always generate a new span ID local sid sid="$(tr -dc 'a-f0-9' < /dev/urandom | head -c 16)" # Execute the command they wanted with the propagation through TRACEPARENT if [[ $was_execution_trace == 1 ]]; then { set -x; } 2>/dev/null fi TRACEPARENT="00-${tid}-${sid}-01" "${@:2}" local result="$?"
Shell Script - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Fri Jul 28 15:25:47 GMT 2023 - 4.1K bytes - Viewed (0)