Documentation ¶
Index ¶
- func MakeDestinationRuleSubsetsForFailoverService(failoverService *discoveryv1alpha2.MeshStatus_AppliedFailoverService, ...) []*networkingv1alpha3spec.Subset
- func MakeDestinationRuleSubsetsForTrafficTarget(trafficTarget *discoveryv1alpha2.TrafficTarget, ...) []*networkingv1alpha3spec.Subset
- func MakeFederatedSubsetLabel(clusterName string) map[string]string
- func NewTrafficShiftDecorator(clusterDomains hostutils.ClusterDomainRegistry, ...) *trafficShiftDecorator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeDestinationRuleSubsetsForFailoverService ¶
func MakeDestinationRuleSubsetsForFailoverService( failoverService *discoveryv1alpha2.MeshStatus_AppliedFailoverService, allTrafficTargets discoveryv1alpha2sets.TrafficTargetSet, ) []*networkingv1alpha3spec.Subset
make all the necessary subsets for the destination rule for the given FailoverService. traverses all the applied traffic policies to find subsets matching this FailoverService
func MakeDestinationRuleSubsetsForTrafficTarget ¶
func MakeDestinationRuleSubsetsForTrafficTarget( trafficTarget *discoveryv1alpha2.TrafficTarget, allTrafficTargets discoveryv1alpha2sets.TrafficTargetSet, failoverServices v1alpha2sets.FailoverServiceSet, sourceClusterName string, ) []*networkingv1alpha3spec.Subset
make all the necessary subsets for the destination rule for the given traffictarget. traverses all the applied traffic policies to find subsets matching this traffictarget
func MakeFederatedSubsetLabel ¶
clusterName corresponds to the cluster name for the federated traffic target.
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 TrafficTarget 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, trafficTargets discoveryv1alpha2sets.TrafficTargetSet, failoverServices v1alpha2sets.FailoverServiceSet, ) *trafficShiftDecorator
Types ¶
This section is empty.