Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TranslateFault (0.5 sec)

  1. pilot/pkg/networking/core/route/route_internal_test.go

    					ErrorType: &xdshttpfault.FaultAbort_GrpcStatus{
    						GrpcStatus: uint32(4),
    					},
    				},
    			},
    		},
    	}
    
    	for _, tt := range cases {
    		t.Run(tt.name, func(t *testing.T) {
    			tf := TranslateFault(tt.fault)
    			if !reflect.DeepEqual(tf, tt.want) {
    				t.Errorf("Unexpected translate fault want %v, got %v", tt.want, tf)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat May 11 02:47:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/listener_waypoint.go

    	}
    	if in.Fault != nil || in.CorsPolicy != nil {
    		out.TypedPerFilterConfig = make(map[string]*any.Any)
    	}
    	if in.Fault != nil {
    		out.TypedPerFilterConfig[wellknown.Fault] = protoconv.MessageToAny(istio_route.TranslateFault(in.Fault))
    	}
    	if in.CorsPolicy != nil {
    		out.TypedPerFilterConfig[wellknown.CORS] = protoconv.MessageToAny(istio_route.TranslateCORSPolicy(lb.node, in.CorsPolicy))
    	}
    
    	return out
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 27.6K bytes
    - Viewed (0)
Back to top