Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertKubePortProtocol ¶ added in v0.12.3
func ConvertKubePortProtocol(port *discoveryv1alpha2.TrafficTargetSpec_KubeService_KubeServicePort) string
ConvertKubePortProtocol converts protocol of k8s Service port to application level protocol exported for use in enterprise
func ServicesForMesh ¶ added in v0.12.3
func ServicesForMesh( mesh *discoveryv1alpha2.Mesh, allTrafficTargets discoveryv1alpha2sets.TrafficTargetSet, ) []*discoveryv1alpha2.TrafficTarget
ServicesForMesh returns all TrafficTargets which belong to a given mesh exported for use in enterprise
Types ¶
type Translator ¶
type Translator interface { // Translate translates the appropriate VirtualService and DestinationRule for the given Mesh. // returns nil if no VirtualService or DestinationRule is required for the Mesh (i.e. if no VirtualService/DestinationRule features are required, such as subsets). // Output resources will be added to the istio.Builder // Errors caused by invalid user config will be reported using the Reporter. Translate( in input.LocalSnapshot, mesh *discoveryv1alpha2.Mesh, virtualMesh *discoveryv1alpha2.MeshStatus_AppliedVirtualMesh, outputs istio.Builder, reporter reporting.Reporter, ) }
the VirtualService translator translates a Mesh into a VirtualService.
func NewTranslator ¶
func NewTranslator( ctx context.Context, trafficTargets discoveryv1alpha2sets.TrafficTargetSet, failoverServices v1alpha2sets.FailoverServiceSet, virtualServiceTranslator virtualservice.Translator, destinationRuleTranslator destinationrule.Translator, ) Translator
Click to show internal directories.
Click to hide internal directories.