Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertKubePortProtocol ¶
func ConvertKubePortProtocol(port *discoveryv1.DestinationSpec_KubeService_KubeServicePort) string
ConvertKubePortProtocol converts protocol of k8s Service port to application level protocol exported for use in enterprise
func ResolutionForEndpointIpVersions ¶ added in v1.1.0
func ResolutionForEndpointIpVersions( workloadEntries []*networkingv1alpha3spec.WorkloadEntry, ) (networkingv1alpha3spec.ServiceEntry_Resolution, error)
Workaround for Istio issue where ipv6 addresses are supplied to Envoy incorrectly: https://github.com/envoyproxy/envoy/issues/10489#issuecomment-606290733. If any endpoints have an ipv6 address, set the resolution to STATIC, else, set the resolution to DNS. exported for use in enterprise
Types ¶
type Translator ¶
type Translator interface { // Translate translates a ServiceEntry, VirtualService and DestinationRule for the given Destination using the data in status.AppliedFederation. // returns nil if no VirtualService or DestinationRule is required for the Mesh (i.e. if no VirtualService/DestinationRule features are required, such as subsets). // Errors caused by invalid user config will be reported using the Reporter. Translate( in input.LocalSnapshot, destination *discoveryv1.Destination, reporter reporting.Reporter, ) ( []*networkingv1alpha3.ServiceEntry, []*networkingv1alpha3.VirtualService, []*networkingv1alpha3.DestinationRule, ) }
the Federation translator translates a Destination into a ServiceEntry, VirtualService, and DestinationRule
func NewTranslator ¶
func NewTranslator( ctx context.Context, virtualServiceTranslator virtualservice.Translator, destinationRuleTranslator destinationrule.Translator, ) Translator
Click to show internal directories.
Click to hide internal directories.