Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for _code (0.14 sec)

  1. istioctl/cmd/sysexits_test.go

    }
    
    func TestKnownExitStrings(t *testing.T) {
    	for err, wantCode := range KnownErrorCode {
    		if code := GetExitCode(err); code != wantCode {
    			t.Errorf("For %v want %v, but is %v", err, wantCode, code)
    		}
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  2. istioctl/pkg/util/formatting/formatter_test.go

    	msgs := diag.Messages{firstMsg, secondMsg}
    	output, _ := Print(msgs, JSONFormat, false)
    
    	expectedOutput := `[
    	{
    		"code": "B1",
    		"documentationUrl": "` + url.ConfigAnalysis + `/b1/",
    		"level": "Error",
    		"message": "Explosion accident: the bubble is too big",
    		"origin": "SoapBubble"
    	},
    	{
    		"code": "C1",
    		"documentationUrl": "` + url.ConfigAnalysis + `/c1/",
    		"level": "Warning",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  3. cni/pkg/repair/repaircontroller.go

    		return trimmedTerminationMessage == "" || trimmedTerminationMessage == strings.TrimSpace(state.Message)
    	}
    	// Helper function; checks that container exit code matches filter
    	matchExitCode := func(state *corev1.ContainerStateTerminated) bool {
    		// If we are filtering on init container exit code and the termination message does not match, exit
    		if ec := c.cfg.InitExitCode; ec == 0 || ec == int(state.ExitCode) {
    			return true
    		}
    		return false
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  4. cni/pkg/config/config.go

    	DeletePods bool
    
    	// Whether to label broken pods
    	LabelPods bool
    
    	// Filters for race repair, including name of sidecar annotation, name of init container,
    	// init container termination message and exit code.
    	SidecarAnnotation  string
    	InitContainerName  string
    	InitTerminationMsg string
    	InitExitCode       int
    
    	// Label and field selectors to select pods managed by race repair.
    	LabelSelectors string
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  5. istioctl/pkg/analyze/analyze.go

    				}
    				// Check to see if the supplied code is valid. If not, emit a
    				// warning but continue.
    				codeIsValid := false
    				for _, at := range msg.All() {
    					if at.Code() == parts[0] {
    						codeIsValid = true
    						break
    					}
    				}
    
    				if !codeIsValid {
    					fmt.Fprintf(cmd.ErrOrStderr(), "Warning: Supplied message code '%s' is an unknown message code and will not have any effect.\n", parts[0])
    				}
    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/healthServer_test.go

    	t.Helper()
    	res, err := http.Get(url + endpoint)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer res.Body.Close()
    	if res.StatusCode != expectedStatusCode {
    		t.Fatalf("expected status code from %s: %d, got: %d", endpoint, expectedStatusCode, res.StatusCode)
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 2K bytes
    - Viewed (0)
  7. cni/pkg/repair/repair_test.go

    				0),
    			true,
    		},
    		{
    			"Check termination code match false",
    			config.RepairConfig{
    				SidecarAnnotation: "sidecar.istio.io/status",
    				InitContainerName: constants.ValidationContainerName,
    				InitExitCode:      126,
    			},
    			makeDetectPod(
    				"TerminationCodeMatchFalse",
    				"",
    				121),
    			false,
    		},
    		{
    			"Check termination code match true",
    			config.RepairConfig{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 24 03:31:28 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  8. cni/pkg/constants/constants.go

    	RepairInitContainerName  = "repair-init-container-name"
    	RepairInitTerminationMsg = "repair-init-container-termination-message"
    	RepairInitExitCode       = "repair-init-container-exit-code"
    	RepairLabelSelectors     = "repair-label-selectors"
    	RepairFieldSelectors     = "repair-field-selectors"
    )
    
    // Internal constants
    const (
    	DefaultKubeconfigMode = 0o600
    
    	CNIAddEventPath = "/cmdadd"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  9. istioctl/pkg/describe/describe.go

    			}
    		}
    	}
    
    	return "", nil
    }
    
    // TODO simplify this by showing for each matching Destination the negation of the previous HttpMatchRequest
    // and showing the non-matching Destinations.  (The current code is ad-hoc, and usually shows most of that information.)
    func printVirtualService(writer io.Writer, initPrintNum int,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 50.4K bytes
    - Viewed (0)
  10. operator/cmd/mesh/root.go

    	rootCmd := &cobra.Command{
    		Use:          "mesh",
    		Short:        "Command line Istio install utility.",
    		SilenceUsage: true,
    		Long: "This command uses the Istio operator code to generate templates, query configurations and perform " +
    			"utility operations.",
    	}
    	rootCmd.SetArgs(args)
    	rootCmd.PersistentFlags().AddGoFlagSet(flag.CommandLine)
    
    	rootCmd.AddCommand(ManifestCmd(ctx))
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 3.9K bytes
    - Viewed (0)
Back to top