Documentation ¶
Index ¶
- Constants
- func BuildGatewayName(virtualMesh *discoveryv1.MeshStatus_AppliedVirtualMesh) string
- func BuildTcpRewriteEnvoyFilter(ingressGateway *discoveryv1.MeshSpec_Istio_IngressGatewayInfo, ...) *networkingv1alpha3.EnvoyFilter
- func BuildTcpRewritePatch(istioMesh *discoveryv1.MeshSpec_Istio, ...) (*types.Struct, error)
- func ConvertKubePortProtocol(port *discoveryv1.DestinationSpec_KubeService_KubeServicePort) string
- func DestinationsForMesh(mesh *discoveryv1.Mesh, destinations discoveryv1sets.DestinationSet) []*discoveryv1.Destination
- type Translator
Constants ¶
View Source
const (
DefaultGatewayPortName = "tls"
)
Variables ¶
This section is empty.
Functions ¶
func BuildGatewayName ¶ added in v1.0.0
func BuildGatewayName(virtualMesh *discoveryv1.MeshStatus_AppliedVirtualMesh) string
func BuildTcpRewriteEnvoyFilter ¶ added in v1.0.0
func BuildTcpRewriteEnvoyFilter( ingressGateway *discoveryv1.MeshSpec_Istio_IngressGatewayInfo, istioInstallation *discoveryv1.MeshSpec_MeshInstallation, tcpRewritePatch *types.Struct, name string, ) *networkingv1alpha3.EnvoyFilter
func BuildTcpRewritePatch ¶ added in v1.0.0
func BuildTcpRewritePatch( istioMesh *discoveryv1.MeshSpec_Istio, clusterPattern, clusterReplacement string, ) (*types.Struct, error)
BuildTcpRewritePatch Public to be used in enterprise
func ConvertKubePortProtocol ¶ added in v0.12.3
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 DestinationsForMesh ¶ added in v1.0.0
func DestinationsForMesh( mesh *discoveryv1.Mesh, destinations discoveryv1sets.DestinationSet, ) []*discoveryv1.Destination
DestinationsForMesh returns all Destinations 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 *discoveryv1.Mesh, virtualMesh *discoveryv1.MeshStatus_AppliedVirtualMesh, outputs istio.Builder, reporter reporting.Reporter, ) }
the VirtualService translator translates a Mesh into a VirtualService.
func NewTranslator ¶
func NewTranslator( ctx context.Context, destinations discoveryv1sets.DestinationSet, virtualServiceTranslator virtualservice.Translator, destinationRuleTranslator destinationrule.Translator, ) Translator
Click to show internal directories.
Click to hide internal directories.