Documentation ¶
Index ¶
- func MakeDestinationRuleSubsets(requiredSubsets []*discoveryv1.RequiredSubsets) []*networkingv1alpha3spec.Subset
- func MakeDestinationRuleSubsetsForDestination(destination *discoveryv1.Destination, sourceCluster string) []*networkingv1alpha3spec.Subset
- func MakeDestinationRuleSubsetsForVirtualDestination(virtualDestination *v1beta1.VirtualDestination) []*networkingv1alpha3spec.Subset
- func MakeFederatedSubsetLabel(clusterName string) map[string]string
- func SubsetName(labels map[string]string) string
- func TranslateRequestMatchers(requestMatchers []*v1.HttpMatcher, ...) []*networkingv1alpha3spec.HTTPMatchRequest
- func TranslateWeightedDestination(weightedDest *networkingv1.WeightedDestination, sourceCluster string, ...) (*networkingv1alpha3spec.HTTPRouteDestination, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeDestinationRuleSubsets ¶
func MakeDestinationRuleSubsets( requiredSubsets []*discoveryv1.RequiredSubsets, ) []*networkingv1alpha3spec.Subset
func MakeDestinationRuleSubsetsForDestination ¶
func MakeDestinationRuleSubsetsForDestination( destination *discoveryv1.Destination, sourceCluster string, ) []*networkingv1alpha3spec.Subset
make all the necessary subsets for the destination rule for the given destination. traverses all the applied traffic policies to find subsets matching this destination
func MakeDestinationRuleSubsetsForVirtualDestination ¶
func MakeDestinationRuleSubsetsForVirtualDestination( virtualDestination *v1beta1.VirtualDestination, ) []*networkingv1alpha3spec.Subset
exported for use in enterprise
func MakeFederatedSubsetLabel ¶
clusterName corresponds to the cluster name for the federated Destination.
NOTE(ilackarms): we use these labels to support federated subsets. the values don't actually matter; but the subset names should match those on the DestinationRule for the Destination in the remote cluster. based on: https://istio.io/latest/blog/2019/multicluster-version-routing/#create-a-destination-rule-on-both-clusters-for-the-local-reviews-service exported for use in enterprise
func SubsetName ¶
used in DestinationRule translator as well
func TranslateRequestMatchers ¶
func TranslateRequestMatchers( requestMatchers []*v1.HttpMatcher, sourceSelectors []*commonv1.WorkloadSelector, ) []*networkingv1alpha3spec.HTTPMatchRequest
TranslateRequestMatchers translates request matchers to Istio. Only provide sourceNamespace and sourceLabels for translation of in-mesh VirtualServices.
func TranslateWeightedDestination ¶
func TranslateWeightedDestination( weightedDest *networkingv1.WeightedDestination, sourceCluster string, destinations discoveryv1sets.DestinationSet, virtualDestinations v1beta1sets.VirtualDestinationSet, clusterDomains hostutils.ClusterDomainRegistry, ) (*networkingv1alpha3spec.HTTPRouteDestination, error)
Types ¶
This section is empty.