Documentation
¶
Index ¶
- Constants
- func DestinationRuleMutator(ctx model.SessionContext, ref *model.Ref) error
- func DestinationRuleRevertor(ctx model.SessionContext, ref *model.Ref) error
- func GatewayMutator(ctx model.SessionContext, ref *model.Ref) error
- func GatewayRevertor(ctx model.SessionContext, ref *model.Ref) error
- func VirtualServiceGatewayLocator(ctx model.SessionContext, ref *model.Ref) bool
- func VirtualServiceMutator(ctx model.SessionContext, ref *model.Ref) error
- func VirtualServiceRevertor(ctx model.SessionContext, ref *model.Ref) error
Constants ¶
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" )
const (
// DestinationRuleKind is the k8s Kind for a istio DestinationRule
DestinationRuleKind = "DestinationRule"
)
const (
// GatewayKind is the k8s Kind for a istio Gateway
GatewayKind = "Gateway"
)
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.