Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for tozero (0.21 sec)

  1. istioctl/cmd/sysexits.go

    const (
    	ExitUnknownError   = 1 // for compatibility with existing exit code
    	ExitIncorrectUsage = 64
    	ExitDataError      = 65 // some format error with input data
    
    	// below here are non-zero exit codes that don't indicate an error with istioctl itself
    	ExitAnalyzerFoundIssues = 79 // istioctl analyze found issues, for CI/CD
    )
    
    func GetExitCode(e error) int {
    	if strings.Contains(e.Error(), "unknown command") {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/envoy/configdump/route_test.go

    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestDescribeRouteDomains(t *testing.T) {
    	tests := []struct {
    		desc     string
    		domains  []string
    		expected string
    	}{
    		{
    			desc:     "test zero domain",
    			domains:  []string{},
    			expected: "",
    		},
    		{
    			desc:     "test only one domain",
    			domains:  []string{"example.com"},
    			expected: "example.com",
    		},
    		{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/compare/sds/util.go

    		GetTrustedCa().
    		GetInlineBytes()
    
    	// seems as though the most straightforward way to tell whether this is a root ca or not
    	// is to check whether the inline bytes of the cert chain or the trusted ca field is zero length
    	if len(certChainSecret) > 0 {
    		builder.Data(string(certChainSecret))
    	} else if len(caDataSecret) > 0 {
    		builder.Data(string(caDataSecret))
    	}
    
    	secret, err := builder.Build()
    	if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jun 06 15:14:48 GMT 2023
    - 6.6K bytes
    - Viewed (0)
  4. cni/pkg/plugin/plugin_dryrun_test.go

    			customGID:   &customGID,
    			golden:      filepath.Join(env.IstioSrc, "cni/pkg/plugin/testdata/custom-uid.txt.golden"),
    		},
    		{
    			name:        "custom-uid-zero",
    			annotations: map[string]string{annotation.SidecarStatus.Name: "true"},
    			customUID:   &zero,
    			golden:      filepath.Join(env.IstioSrc, "cni/pkg/plugin/testdata/basic.txt.golden"),
    		},
    		{
    			name: "custom-uid-tproxy",
    			annotations: map[string]string{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  5. istioctl/pkg/analyze/analyze.go

    		"Enable verbose output")
    	analysisCmd.PersistentFlags().Var(&failureThreshold, "failure-threshold",
    		fmt.Sprintf("The severity level of analysis at which to set a non-zero exit code. Valid values: %v", diag.GetAllLevelStrings()))
    	analysisCmd.PersistentFlags().Var(&outputThreshold, "output-threshold",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 17K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/podcgroupns.go

    		`[[:punct:]]pod(?P<poduid>[[:xdigit:]]{8}[[:punct:]]?[[:xdigit:]]{4}[[:punct:]]?[[:xdigit:]]{4}[[:punct:]]?[[:xdigit:]]{4}[[:punct:]]?[[:xdigit:]]{12})[[:punct:]]` +
    		// zero or more punctuation separated "segments" (e.g. "docker-")
    		`(?:[[:^punct:]]+[[:punct:]])*` +
    		// non-punctuation end of string, i.e., the container ID
    		`(?P<containerid>[[:^punct:]]+)$`),
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 11K bytes
    - Viewed (0)
Back to top