Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 103 for Messages (0.49 sec)

  1. pkg/config/resource/instance_test.go

    import (
    	"testing"
    
    	. "github.com/onsi/gomega"
    	"google.golang.org/protobuf/types/known/emptypb"
    )
    
    func TestInstance_IsEmpty_False(t *testing.T) {
    	g := NewWithT(t)
    
    	e := Instance{
    		Message: &emptypb.Empty{},
    	}
    
    	g.Expect(e.IsEmpty()).To(BeFalse())
    }
    
    func TestInstance_IsEmpty_True(t *testing.T) {
    	g := NewWithT(t)
    	e := Instance{}
    
    	g.Expect(e.IsEmpty()).To(BeTrue())
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. pkg/config/analysis/analyzers/deployment/services.go

    	matchingSvcs := make([]ServiceSpecWithName, 0)
    	d := r.Message.(*appsv1.DeploymentSpec)
    	deploymentNS := r.Metadata.FullName.Namespace.String()
    
    	c.ForEach(gvk.Service, func(r *resource.Instance) bool {
    		s := r.Message.(*core_v1.ServiceSpec)
    
    		sSelector := klabels.SelectorFromSet(s.Selector)
    		pLabels := klabels.Set(d.Template.Labels)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun May 05 03:44:57 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. pkg/test/echo/proto/echo.pb.go

    }
    
    func (x *EchoRequest) GetMessage() string {
    	if x != nil {
    		return x.Message
    	}
    	return ""
    }
    
    type EchoResponse struct {
    	state         protoimpl.MessageState
    	sizeCache     protoimpl.SizeCache
    	unknownFields protoimpl.UnknownFields
    
    	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
    }
    
    func (x *EchoResponse) Reset() {
    	*x = EchoResponse{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 02:27:10 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  4. 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,
    			"",
    		),
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  5. pkg/config/analysis/context.go

    type IteratorFn func(r *resource.Instance) bool
    
    // Context is an analysis context that is passed to individual analyzers.
    type Context interface {
    	// Report a diagnostic message
    	Report(c config.GroupVersionKind, t diag.Message)
    
    	// Find a resource in the collection. If not found, nil is returned
    	Find(c config.GroupVersionKind, name resource.FullName) *resource.Instance
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 28 20:21:54 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  6. pilot/test/xdstest/extract.go

    	}
    	return res
    }
    
    func SilentlyUnmarshalAny[T any](a *anypb.Any) *T {
    	dst := any(new(T)).(proto.Message)
    	if err := a.UnmarshalTo(dst); err != nil {
    		var z *T
    		return z
    	}
    	return any(dst).(*T)
    }
    
    func UnmarshalAny[T any](t test.Failer, a *anypb.Any) *T {
    	dst := any(new(T)).(proto.Message)
    	if err := a.UnmarshalTo(dst); err != nil {
    		t.Fatalf("failed to unmarshal to %T: %v", dst, err)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  7. 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)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Feb 10 00:31:55 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. pilot/pkg/model/jwks_resolver.go

    			return nil, err
    		}
    
    		if resp.StatusCode < 200 || resp.StatusCode >= 300 {
    			message := strconv.Quote(string(body))
    			if len(message) > 100 {
    				message = message[:100]
    				return nil, fmt.Errorf("status %d, message %s(truncated)", resp.StatusCode, message)
    			}
    			return nil, fmt.Errorf("status %d, message %s", resp.StatusCode, message)
    		}
    
    		return body, nil
    	}
    
    	for i := 0; i < retry; i++ {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 09:47:21 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  9. pilot/pkg/grpc/grpc.go

    		if s.Code() == codes.Canceled || s.Code() == codes.DeadlineExceeded {
    			return true
    		}
    		if s.Code() == codes.Unavailable && containsExpectedMessage(s.Message()) {
    			return true
    		}
    	}
    	// If this is not a gRPCStatus we should just error message.
    	if strings.Contains(err.Error(), "stream terminated by RST_STREAM with error code: NO_ERROR") {
    		return true
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Feb 17 04:27:50 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. pkg/config/analysis/analyzers/externalcontrolplane/externalcontrolplane.go

    		}
    	}
    
    	c.ForEach(gvk.ValidatingWebhookConfiguration, func(resource *resource.Instance) bool {
    		webhookConfig := resource.Message.(*v1.ValidatingWebhookConfiguration)
    
    		// 1. ValidatingWebhookConfiguration: istio-validator or istiod-default-validator(default)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 16:48:42 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top