trafficshift

package
v1.0.0-beta5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeDestinationRuleSubsetsForDestination added in v1.0.0

func MakeDestinationRuleSubsetsForDestination(
	destination *discoveryv1.Destination,
	allDestinations discoveryv1sets.DestinationSet,
	sourceClusterName 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 added in v1.0.0

func MakeDestinationRuleSubsetsForVirtualDestination(
	virtualDestination *v1beta1.VirtualDestination,
	allTrafficTargets discoveryv1sets.DestinationSet,
) []*networkingv1alpha3spec.Subset

make all the necessary subsets for the destination rule for the given VirtualDestination. traverses all the applied traffic policies to find subsets matching this VirtualDestination

func MakeFederatedSubsetLabel

func MakeFederatedSubsetLabel(clusterName string) map[string]string

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

func NewTrafficShiftDecorator

func NewTrafficShiftDecorator(
	clusterDomains hostutils.ClusterDomainRegistry,
	destinations discoveryv1sets.DestinationSet,
	virtualDestinations v1beta1sets.VirtualDestinationSet,
) *trafficShiftDecorator

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL