istio

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VirtualServiceKind is the k8s Kind for a istio VirtualService
	VirtualServiceKind = "VirtualService"

	// LabelIkeMutated is a bool label to indicated we own the resource
	LabelIkeMutated = "ike.mutated"

	// LabelIkeMutatedValue is the bool value of the LabelIkeMutated label
	LabelIkeMutatedValue = "true"
)
View Source
const (
	// DestinationRuleKind is the k8s Kind for a istio DestinationRule
	DestinationRuleKind = "DestinationRule"
)
View Source
const (
	// GatewayKind is the k8s Kind for a istio Gateway
	GatewayKind = "Gateway"
)
View Source
const (
	// LabelIkeHosts describes the labels key used on the Gateway LocatedResource of Hosts bound to this Gateway.
	LabelIkeHosts = "ike.hosts"
)

Variables

This section is empty.

Functions

func DestinationRuleMutator

func DestinationRuleMutator(ctx model.SessionContext, ref *model.Ref) error

DestinationRuleMutator creates destination rule mutator which is responsible for alternating the traffic for development of the forked service.

func DestinationRuleRevertor

func DestinationRuleRevertor(ctx model.SessionContext, ref *model.Ref) error

DestinationRuleRevertor looks at the Ref.ResourceStatus and attempts to revert the state of the mutated objects.

func GatewayMutator added in v0.0.4

func GatewayMutator(ctx model.SessionContext, ref *model.Ref) error

GatewayMutator attempts to expose a external host on the gateway.

func GatewayRevertor added in v0.0.4

func GatewayRevertor(ctx model.SessionContext, ref *model.Ref) error

GatewayRevertor looks at the Ref.ResourceStatus and attempts to revert the state of the mutated objects.

func VirtualServiceGatewayLocator added in v0.0.4

func VirtualServiceGatewayLocator(ctx model.SessionContext, ref *model.Ref) bool

VirtualServiceGatewayLocator locates the Gateways that are connected to VirtualServices.

func VirtualServiceMutator

func VirtualServiceMutator(ctx model.SessionContext, ref *model.Ref) error

VirtualServiceMutator attempts to create a virtual service for forked service.

func VirtualServiceRevertor

func VirtualServiceRevertor(ctx model.SessionContext, ref *model.Ref) error

VirtualServiceRevertor looks at the Ref.ResourceStatus and attempts to revert the state of the mutated objects.

Types

This section is empty.

Jump to

Keyboard shortcuts

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