Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for Message (0.92 sec)

  1. istioctl/pkg/util/formatting/formatter_test.go

    	)
    
    	msgs := diag.Messages{firstMsg, secondMsg}
    	output, _ := Print(msgs, YAMLFormat, 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
      message: 'Collapse danger: the castle is too old'
    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)
  2. istioctl/pkg/authz/listener.go

    type filterChain struct {
    	rbacHTTP []*rbachttp.RBAC
    	rbacTCP  []*rbactcp.RBAC
    }
    
    type parsedListener struct {
    	filterChains []*filterChain
    }
    
    func getFilterConfig(filter *listener.Filter, out proto.Message) error {
    	switch c := filter.ConfigType.(type) {
    	case *listener.Filter_TypedConfig:
    		if err := c.TypedConfig.UnmarshalTo(out); err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Sep 11 15:29:30 GMT 2023
    - 6K bytes
    - Viewed (0)
  3. cni/pkg/repair/repaircontroller.go

    func (c *Controller) matchesFilter(pod *corev1.Pod) bool {
    	// Helper function; checks that a container's termination message matches filter
    	matchTerminationMessage := func(state *corev1.ContainerStateTerminated) bool {
    		// If we are filtering on init container termination message and the termination message of 'state' does not match, exit
    		trimmedTerminationMessage := strings.TrimSpace(c.cfg.InitTerminationMsg)
    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. istioctl/pkg/util/proto/messageslice.go

    	"google.golang.org/protobuf/proto"
    
    	"istio.io/istio/pkg/util/protomarshal"
    )
    
    // MessageSlice allows us to marshal slices of protobuf messages like clusters/listeners/routes/endpoints correctly
    type MessageSlice []proto.Message
    
    // MarshalJSON handles marshaling of slices of proto messages
    func (pSlice MessageSlice) MarshalJSON() ([]byte, error) {
    	buffer := bytes.NewBufferString("[")
    	sliceLength := len(pSlice)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 19 21:53:59 GMT 2021
    - 1.3K bytes
    - Viewed (0)
  5. cni/pkg/repair/repair_test.go

    		},
    		{
    			"Check termination message match true",
    			config.RepairConfig{
    				SidecarAnnotation:  "sidecar.istio.io/status",
    				InitContainerName:  constants.ValidationContainerName,
    				InitTerminationMsg: "Termination Message",
    			},
    			makeDetectPod(
    				"TerminationMessageMatchTrue",
    				"Termination Message",
    				0),
    			true,
    		},
    		{
    			"Check termination message match true for trailing and leading space",
    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)
  6. istioctl/pkg/validate/validate.go

    	}
    	schema, exists := collections.Pilot.FindByGroupVersionAliasesKind(gvk)
    	if exists {
    		obj, err := convertObjectFromUnstructured(schema, un, "")
    		if err != nil {
    			return nil, fmt.Errorf("cannot parse proto message: %v", err)
    		}
    		if err = checkFields(un); err != nil {
    			return nil, err
    		}
    
    		// If object to validate has no namespace, set it (the validity of a CR
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
  7. istioctl/pkg/analyze/analyze.go

    			}
    		})
    		readers = append(readers, local.ReaderSource{Name: path, Reader: r})
    		return nil
    	})
    	return readers, err
    }
    
    func errorIfMessagesExceedThreshold(messages []diag.Message) error {
    	foundIssues := false
    	for _, m := range messages {
    		if m.Type.Level().IsWorseThanOrEqualTo(failureThreshold.Level) {
    			foundIssues = true
    		}
    	}
    
    	if foundIssues {
    		return AnalyzerFoundIssuesError{}
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 17K bytes
    - Viewed (0)
  8. operator/cmd/mesh/install.go

    		}
    		if err := installationVerifier.Verify(); err != nil {
    			return fmt.Errorf("verification failed with the following error: %v", err)
    		}
    	}
    
    	// Post-install message
    	if profile == "ambient" {
    		p.Println("The ambient profile has been installed successfully, enjoy Istio without sidecars!")
    	}
    	return nil
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 14:30:43 GMT 2024
    - 15.5K bytes
    - Viewed (1)
  9. istioctl/pkg/analyze/analyze_test.go

    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/istioctl/pkg/util/testutil"
    	"istio.io/istio/pkg/config/analysis/diag"
    )
    
    func TestErrorOnIssuesFound(t *testing.T) {
    	g := NewWithT(t)
    
    	msgs := []diag.Message{
    		diag.NewMessage(
    			diag.NewMessageType(diag.Error, "B1", "Template: %q"),
    			nil,
    			"",
    		),
    		diag.NewMessage(
    			diag.NewMessageType(diag.Warning, "A1", "Template: %q"),
    			nil,
    			"",
    		),
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  10. 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.
    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)
Back to top