Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Translator ¶
type Translator interface { // Translate translates the appropriate DestinationRule for the given Destination. // returns nil if no DestinationRule is required for the Destination (i.e. if no DestinationRule features are required, such as subsets). // // Errors caused by invalid user config will be reported using the Reporter. // // Note that the input snapshot DestinationSet contains the given Destination. Translate( ctx context.Context, in input.LocalSnapshot, destination *discoveryv1.Destination, sourceMeshInstallation *discoveryv1.MeshInstallation, reporter reporting.Reporter, ) *networkingv1alpha3.DestinationRule }
the DestinationRule translator translates a Destination into a DestinationRule.
func NewTranslator ¶
func NewTranslator( settings *settingsv1.Settings, userDestinationRules v1alpha3sets.DestinationRuleSet, clusterDomains hostutils.ClusterDomainRegistry, decoratorFactory decorators.Factory, destinations discoveryv1sets.DestinationSet, ) Translator
Click to show internal directories.
Click to hide internal directories.