fishapp

package
v1.5.0-chart Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppContainerPort       = 9080
	HttpProxyContainerPort = 8899
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicStack

type DynamicStack struct {
	// service discovery type
	ServiceDiscoveryType manifest.ServiceDiscoveryType

	// tls
	IsTLSEnabled bool

	//mtls
	IsmTLSEnabled bool

	// number of virtual service
	VirtualServicesCount int

	// number of virtual nodes count
	VirtualNodesCount int

	// number of routes per virtual router
	RoutesCountPerVirtualRouter int

	// number of targets per route
	TargetsCountPerRoute int

	// number of backends per virtual node
	BackendsCountPerVirtualNode int

	// number of replicas per virtual node
	ReplicasPerVirtualNode int32

	// how many time to check connectivity per URL
	ConnectivityCheckPerURL int

	BackendVNsByVR map[string][]string
	VNReferenceMap map[string][]*string
	// contains filtered or unexported fields
}

A dynamic generated stack designed to test app mesh integration :D Suppose given configuration below:

5 VirtualServicesCount
10 VirtualNodesCount
2 RoutesCountPerVirtualRouter
2 TargetsCountPerRoute
4 BackendsCountPerVirtualNode

We will generate virtual service configuration & virtual node configuration follows: =======virtual services =========

vs1 -> /path1 -> vn1(50)
			  -> vn2(50)
	-> /path2 -> vn3(50)
			  -> vn4(50)
vs2 -> /path1 -> vn5(50)
			  -> vn6(50)
	-> /path2 -> vn7(50)
			  -> vn8(50)
vs3 -> /path1 -> vn9(50)
			  -> vn10(50)
	-> /path2 -> vn1(50)
			  -> vn2(50)
vs4 -> /path1 -> vn3(50)
			  -> vn4(50)
	-> /path2 -> vn5(50)
			  -> vn6(50)
vs5 -> /path1 -> vn7(50)
			  -> vn8(50)
	-> /path2 -> vn9(50)
			  -> vn10(50)

=======virtual nodes =========

vn1 -> vs1,vs2,vs3,vs4
vn2 -> vs5,vs1,vs2,vs3
vn3 -> vs4,vs5,vs1,vs2
...

then we validate each virtual node can access each virtual service at every path, and calculates the target distribution

func (*DynamicStack) Check

func (s *DynamicStack) Check(ctx context.Context, f *framework.Framework)

Check connectivity and routing works correctly

func (*DynamicStack) Cleanup

func (s *DynamicStack) Cleanup(ctx context.Context, f *framework.Framework)

expects the stack can be cleaned up from namespace successfully

func (*DynamicStack) Deploy

func (s *DynamicStack) Deploy(ctx context.Context, f *framework.Framework)

expects the stack can be deployed to namespace successfully

Jump to

Keyboard shortcuts

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