Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Stderr (0.4 sec)

  1. cni/pkg/util/executil.go

    	stdout := &bytes.Buffer{}
    	stderr := &bytes.Buffer{}
    	externalCommand.Stdout = stdout
    	externalCommand.Stderr = stderr
    
    	err := externalCommand.Run()
    
    	if len(stdout.String()) != 0 {
    		log.Debugf("Command output: \n%v", stdout.String())
    	}
    
    	if err != nil || len(stderr.Bytes()) != 0 {
    		log.Debugf("Command error output: \n%v", stderr.String())
    		return errors.New(stderr.String())
    	}
    
    	return nil
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  2. operator/cmd/mesh/profile-diff_test.go

    			notExpected: "-    istiocoredns:",
    			// 'profile diff' "fails" so that the error level `$?` is 1, not 0, if there is a diff
    			shouldFail: false,
    		},
    	}
    
    	l := clog.NewConsoleLogger(os.Stdout, os.Stderr, nil)
    	for i, c := range cases {
    		t.Run(fmt.Sprintf("case %d %q", i, c.args), func(t *testing.T) {
    			args := strings.Split(c.args, " ")
    			setFlag := fmt.Sprintf("installPackagePath=%s", snapshotCharts)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Jan 10 05:10:03 GMT 2024
    - 3.6K bytes
    - Viewed (1)
  3. istioctl/pkg/tag/tag.go

    	return cmd
    }
    
    // setTag creates or modifies a revision tag.
    func setTag(ctx context.Context, kubeClient kube.CLIClient, tagName, revision, istioNS string, generate bool, w, stderr io.Writer) error {
    	opts := &GenerateOptions{
    		Tag:                  tagName,
    		Revision:             revision,
    		WebhookName:          webhookName,
    		ManifestsPath:        manifestsPath,
    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.go

    			// istioctl kube-inject is typically redirected to a .yaml file;
    			// the default for log messages should be stderr, not stdout
    			root := c.Root()
    			if root != nil {
    				_ = c.Root().PersistentFlags().Set("log_target", "stderr")
    			}
    			if c.Parent() != nil && c.Parent().PersistentPreRunE != nil {
    				return c.Parent().PersistentPreRunE(c, args)
    			}
    
    			return nil
    		},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  5. operator/cmd/mesh/operator_test.go

    			operatorNamespace: "operator-test-namespace",
    			watchedNamespaces: "istio-test-namespace1,istio-test-namespace2",
    			manifestsPath:     string(snapshotCharts),
    		},
    	}
    
    	l := clog.NewConsoleLogger(os.Stdout, os.Stderr, installerScope)
    	_, gotYAML, err := renderOperatorManifest(rootArgs, &oiArgs.common)
    	if err != nil {
    		l.LogAndFatal(err)
    	}
    
    	if refreshGoldenFiles() {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Aug 29 14:15:33 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  6. istioctl/pkg/multixds/gather.go

    				if visited[namespacedName] {
    					// If we already have information about the pod, skip it.
    					continue
    				}
    				resp, err := queryToOnePod(&pod)
    				if err != nil {
    					fmt.Fprintf(os.Stderr, "Skip the agent in Pod %s due to the error: %s\n", namespacedName, err.Error())
    					continue
    				}
    				responses = append(responses, resp)
    			}
    			token = list.ListMeta.GetContinue()
    			if token == "" {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  7. cni/pkg/plugin/plugin.go

    	case "info":
    		return log.InfoLevel
    	}
    	return log.InfoLevel
    }
    
    func GetLoggingOptions(udsAddress string) *log.Options {
    	loggingOptions := log.DefaultOptions()
    	loggingOptions.OutputPaths = []string{"stderr"}
    	loggingOptions.JSONEncoding = true
    	if udsAddress != "" {
    		loggingOptions.WithTeeToUDS(udsAddress, constants.UDSLogPath)
    	}
    	return loggingOptions
    }
    
    // CmdAdd is called for ADD requests
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  8. common-protos/k8s.io/api/core/v1/generated.proto

      // Defaults to true.
      // +optional
      optional bool stdout = 2;
    
      // Stderr if true indicates that stderr is to be redirected for the attach call.
      // Defaults to true.
      // +optional
      optional bool stderr = 3;
    
      // TTY if true indicates that a tty will be allocated for the attach call.
      // This is passed through the container runtime so the tty
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 255.8K bytes
    - Viewed (0)
  9. operator/cmd/mesh/manifest-generate_test.go

    	defer func() {
    		version.DockerInfo.Hub, version.DockerInfo.Tag = tmpHub, tmpTag
    	}()
    	version.DockerInfo.Hub = "testHub"
    	version.DockerInfo.Tag = "testTag"
    	l := clog.NewConsoleLogger(os.Stdout, os.Stderr, installerScope)
    	_, iop, err := manifest.GenerateConfig(nil, []string{"installPackagePath=" + string(liveCharts)}, true, nil, l)
    	if err != nil {
    		t.Fatal(err)
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
Back to top