Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsAllowAnyOutbound (0.16 sec)

  1. pilot/pkg/networking/util/util.go

    			Fields: map[string]*structpb.Value{},
    		}
    	}
    
    	metadata.FilterMetadata[IstioMetadataKey].Fields[key] = val
    }
    
    // IsAllowAnyOutbound checks if allow_any is enabled for outbound traffic
    func IsAllowAnyOutbound(node *model.Proxy) bool {
    	return node.SidecarScope != nil &&
    		node.SidecarScope.OutboundTrafficPolicy != nil &&
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  2. pilot/pkg/networking/util/util_test.go

    						Mode: networking.OutboundTrafficPolicy_ALLOW_ANY,
    					},
    				},
    			},
    			result: true,
    		},
    	}
    	for i := range tests {
    		t.Run(tests[i].name, func(t *testing.T) {
    			out := IsAllowAnyOutbound(tests[i].node)
    			if out != tests[i].result {
    				t.Errorf("Expected %t but got %t for test case: %v\n", tests[i].result, out, tests[i].node)
    			}
    		})
    	}
    }
    
    func TestBuildAddress(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 40K bytes
    - Viewed (0)
Back to top