Documentation ¶
Index ¶
- Variables
- func DemoScenario(out io.Writer)
- func Deployment(service Entry) runtime.Object
- func DeploymentConfig(service Entry) runtime.Object
- func DestinationRule(service Entry) runtime.Object
- func Gateway() runtime.Object
- func Generate(out io.Writer, services []Entry, sub []SubGenerator, modifiers ...Modifier)
- func IncompleteMissingDestinationRules(out io.Writer)
- func IncompleteMissingVirtualServices(out io.Writer)
- func Service(service Entry) runtime.Object
- func TestScenario1GRPCThreeServicesInSequence(out io.Writer)
- func TestScenario1HTTPThreeServicesInSequence(out io.Writer)
- func TestScenario2ThreeServicesInSequenceDeploymentConfig(out io.Writer)
- func VirtualService(service Entry) runtime.Object
- type Entry
- type Modifier
- type Protocol
- type SubGenerator
Constants ¶
This section is empty.
Variables ¶
var ( TestImageName = "" GatewayHost = "*" )
var ( Namespace = "" GatewayNamespace = "" GatewayName = "test-gateway" )
Functions ¶
func DemoScenario ¶
DemoScenario is a simple setup for demo purposes.
func Deployment ¶
Deployment basic SubGenerator for the kind Deployment.
func DeploymentConfig ¶
DeploymentConfig basic SubGenerator for the kind DeploymentConfig.
func DestinationRule ¶
DestinationRule basic SubGenerator for the kind DestinationRule.
func Generate ¶
func Generate(out io.Writer, services []Entry, sub []SubGenerator, modifiers ...Modifier)
Generate runs and prints the full test scenario generation to sysout.
func IncompleteMissingDestinationRules ¶ added in v0.5.0
IncompleteMissingVirtualServices generates a scenario where there are no DestinationRules.
func IncompleteMissingVirtualServices ¶ added in v0.5.0
IncompleteMissingVirtualServices generates a scenario where there are no VirtualServices.
func TestScenario1GRPCThreeServicesInSequence ¶ added in v0.0.4
TestScenario1GRPCThreeServicesInSequence is a basic test setup with a few services calling each other in a chain over grpc. Similar to the original bookinfo example setup.
func TestScenario1HTTPThreeServicesInSequence ¶ added in v0.0.4
TestScenario1HTTPThreeServicesInSequence is a basic test setup with a few services calling each other in a chain over http. Similar to the original bookinfo example setup.
func TestScenario2ThreeServicesInSequenceDeploymentConfig ¶
TestScenario2ThreeServicesInSequenceDeploymentConfig is a basic test setup with a few services calling each other in a chain. Similar to the original bookinfo example setup. Using DeploymentConfig.
func VirtualService ¶
VirtualService basic SubGenerator for the kind VirtualService.
Types ¶
type Entry ¶
Entry is a simple value object that holds the basic configuration used by the generator.
type Modifier ¶
Modifier is a function to change a runtime.Object into something more specific for a given scenario.
func ConnectToGateway ¶
ConnectToGateway modifier to connect VirtualService to a Gateway. Combine with ForService.
func ForService ¶
ForService modifier is a filter to only execute the given modifiers if the target object belongs to the named target.
func GatewayOnHost ¶
GatewayOnHost modifier to set a hostname on the gateway.
func WithVersion ¶
WithVersion modifier adds a single istio 'version' to DestinationRule/VirtualService/Deployment.
type Protocol ¶ added in v0.0.4
Protocol is a function that returns the URL for a given Protocol for a given Service.
type SubGenerator ¶
SubGenerator is a function intended to create the basic runtime.Object as a starting point for modification.