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
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.