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 TrafficTarget. // returns nil if no DestinationRule is required for the TrafficTarget (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 TrafficTargetSet contains the given TrafficTarget. Translate( ctx context.Context, in input.Snapshot, trafficTarget *discoveryv1alpha2.TrafficTarget, sourceMeshInstallation *discoveryv1alpha2.MeshSpec_MeshInstallation, reporter reporting.Reporter, ) *networkingv1alpha3.DestinationRule }
the DestinationRule translator translates a TrafficTarget into a DestinationRule.
func NewTranslator ¶
func NewTranslator( clusterDomains hostutils.ClusterDomainRegistry, decoratorFactory decorators.Factory, trafficTargets discoveryv1alpha2sets.TrafficTargetSet, failoverServices v1alpha2sets.FailoverServiceSet, ) Translator
Click to show internal directories.
Click to hide internal directories.