Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 71 for typeurl (0.14 sec)

  1. pkg/adsc/adsc_test.go

    		expected := map[string]*discovery.DiscoveryResponse{}
    		for _, request := range desc.initialRequests {
    			if desc.excludedResource != "" && request.TypeUrl == desc.excludedResource {
    				continue
    			}
    			expected[request.TypeUrl] = &discovery.DiscoveryResponse{
    				TypeUrl: request.TypeUrl,
    			}
    		}
    
    		tc := testCase{
    			desc: desc.desc,
    			inAdsc: &ADSC{
    				Received:   make(map[string]*discovery.DiscoveryResponse),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  2. pkg/wasm/convert_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	return st
    }
    
    func messageToAnyWithTypeURL(t *testing.T, msg proto.Message, typeURL string) *anypb.Any {
    	b, err := proto.MarshalOptions{Deterministic: true}.Marshal(msg)
    	if err != nil {
    		t.Fatal(err)
    	}
    	return &anypb.Any{
    		// nolint: staticcheck
    		TypeUrl: typeURL,
    		Value:   b,
    	}
    }
    
    func TestWasmConvertWithWrongMessages(t *testing.T) {
    	cases := []struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. pkg/wasm/convert.go

    	"istio.io/istio/pkg/bootstrap"
    	"istio.io/istio/pkg/model"
    	"istio.io/istio/pkg/util/istiomultierror"
    )
    
    var (
    	allowHTTPTypedConfig = &anypb.Any{
    		TypeUrl: "type.googleapis.com/envoy.extensions.filters.http.rbac.v3.RBAC",
    	}
    	allowNetworkTypedConfig = &anypb.Any{
    		TypeUrl: "type.googleapis.com/envoy.extensions.filters.network.rbac.v3.RBAC",
    	}
    )
    
    func createHTTPAllowAllFilter(name string) (*anypb.Any, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. pilot/pkg/xds/delta_test.go

    	// Another removal should behave the same
    	s.MemRegistry.RemoveService("eds.test.svc.cluster.local")
    	resp = ads.ExpectResponse()
    	// ACK
    	ads.Request(&discovery.DeltaDiscoveryRequest{
    		TypeUrl:       resp.TypeUrl,
    		ResponseNonce: resp.Nonce,
    	})
    	assertResources(resp)
    	assert.Equal(t, resp.RemovedResources, []string{"outbound|8080||eds.test.svc.cluster.local"})
    
    	// Another removal should behave the same
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/envoyfilter/listener_patch.go

    				// If we did not do this, merge.Merge below will panic (which is recovered), so even though this
    				// is not 100% reliable its better than doing nothing
    				if userFilter.GetTypedConfig().TypeUrl != filter.GetTypedConfig().TypeUrl {
    					userFilter.ConfigType.(*listener.Filter_TypedConfig).TypedConfig.TypeUrl = filter.GetTypedConfig().TypeUrl
    				}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 15:39:29 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  6. security/pkg/nodeagent/sds/sdsservice.go

    func (w *Watch) GetWatchedResource(string) *xds.WatchedResource {
    	w.Lock()
    	defer w.Unlock()
    	return w.watch
    }
    
    func (w *Watch) NewWatchedResource(typeURL string, names []string) {
    	w.Lock()
    	defer w.Unlock()
    	w.watch = &xds.WatchedResource{TypeUrl: typeURL, ResourceNames: names}
    }
    
    func (w *Watch) UpdateWatchedResource(_ string, f func(*xds.WatchedResource) *xds.WatchedResource) {
    	w.Lock()
    	defer w.Unlock()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat May 25 00:20:04 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. istioctl/pkg/writer/envoy/configdump/listener.go

    	case *matcher.Matcher_MatcherTree_PrefixMatchMap:
    		m = v.PrefixMatchMap.Map
    		equality = "^"
    	case *matcher.Matcher_MatcherTree_CustomMatch:
    		tc := v.CustomMatch.GetTypedConfig()
    		switch tc.TypeUrl {
    		case IPMatcher:
    			ip := protoconv.SilentlyUnmarshalAny[matcher.IPMatcher](tc)
    			m = map[string]*matcher.Matcher_OnMatch{}
    			for _, rm := range ip.GetRangeMatchers() {
    				for _, r := range rm.Ranges {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 29 12:37:14 UTC 2023
    - 18.1K bytes
    - Viewed (0)
  8. pilot/test/xdstest/extract.go

    	resources := make([]*anypb.Any, 0, len(p))
    	for _, v := range p {
    		resources = append(resources, protoconv.MessageToAny(v))
    	}
    	return &discovery.DiscoveryResponse{
    		Resources: resources,
    		TypeUrl:   resources[0].TypeUrl,
    	}
    }
    
    // DumpList will dump a list of protos.
    func DumpList[T any](t test.Failer, protoList []T) []string {
    	res := []string{}
    	for _, i := range protoList {
    		p, ok := any(i).(proto.Message)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  9. pilot/pkg/xds/ads_test.go

    	s := xdsfake.NewFakeDiscoveryServer(t, xdsfake.FakeOptions{})
    
    	ads := s.ConnectADS()
    	// Send normal CDS and EDS requests
    	_ = ads.RequestResponseAck(t, &discovery.DiscoveryRequest{TypeUrl: v3.ClusterType})
    	eres := ads.RequestResponseAck(t, &discovery.DiscoveryRequest{TypeUrl: v3.EndpointType, ResourceNames: []string{"my-resource"}})
    
    	// A push should get a response for both
    	s.Discovery.ConfigUpdate(&model.PushRequest{Full: true})
    	ads.ExpectResponse(t)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 30 17:25:17 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  10. pkg/config/validation/envoyfilter/envoyfilter.go

    		m, isMessage := value.Interface().(protoreflect.Message)
    		if isMessage {
    			anyMessage, isAny := m.Interface().(*anypb.Any)
    			if isAny {
    				mt, err := protoregistry.GlobalTypes.FindMessageByURL(anyMessage.TypeUrl)
    				if err != nil {
    					topError = err
    					return false
    				}
    				var fileOpts proto.Message = mt.Descriptor().ParentFile().Options().(*descriptorpb.FileOptions)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 00:31:03 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top